Set interrupts that are not GPIO or Timer in ESP32
There is no such thing as an &quot;interrupt on a value changing&quot; since that is something that only exists in software, and interrupts are things triggered by hardware.
All you can do is check the value in loop() and send the data if the value is above your threshold. If you want to wake from sleep then you will have to do that periodically through other means.