A coworker asked me to make up a water leak and temperature sensor for their rental property and here is what I came up with.
The ESP8266 is mounted on a terminal strip board that allows easy access to the pins and the DS18B20 temperature sensor can be seen above the MCU and off to the right is the water sensor electronics board and then a coil of blue/white CAT5 wire runs to the actual sensor.
The ESP8266 requires access to wifi so that it can send the alert emails via gmail.
I've programmed it to automatically:
- Send a email when first powered up to let the user know that everything is working OK
- Send an email when water is detected on the sensor
- Send an email if the ambient temperature drops below 15C
- If a condition persists, resend the email every 5 minutes - rather than the scan time which is set to 1 minute
The complete sketch is located at: ESP8266_Water_Temp_Smtp
No comments:
Post a Comment