Waking up from deep sleep with temperature sensor

Hi guys, in my area we have a hot spring directed to a lake. I’m trying to program my ESP32 to send me a message whenever the hot water runs.
I don’t understand how to use the deep sleep function so that it will wake up when the temperature is hot enough.
can someone help with that ?

components:
ESP32
Sonoff temperature & humidity waterproof sensor
programming on visual studio with esphome.

thanks for the help :slight_smile:

hi, did you find a solution?

Maybe you could find a suitable temperature switch which could be connected to a wakeup_pin?

Just found this amazing item on AliExpress. Check it out! AU$0.60 | KSD9700 10C-240C Thermostat 45C 50C 85C 90C 95C 150C Bimetal Disc Temperature Switch N/O Thermal Protector degree
https://a.aliexpress.com/_mKPcRN6