Waterwell sensor

Well (pun intended), took some time and experimenting, but it’s finally there: my waterwell sensor. Using ultrasound to measure the level of water.

The well is 4 meters deep. Measurements are taken every 20 minutes using a jsn-sr04. Data is processed using an ESP8266 D1 mini wemos which also turns the module on and off to save the battery. The latter is rechargable and get recharged by a small solar panel.

The ESP can send to a syslog but data is send by MQTT to homeassistant. It sends waterlevel, wifi rssi, battery voltage, processing time and time of day. First run after midnight is also sends it’s version information and some config settings.