Sump Pit Monitor



  • Hi All,
    I recently replaced my sump pit pump and installed a battery backup pump at the same time. Naturally, when I saw all the alarms available on the backup system, I wanted to integrate them into my home automation system. I also wanted to add a water level sensor to get a better idea of how often the pump ran and also create a water level alarm.
    e61c8797-9b2e-4cc5-9d17-68e08e8258f4-image.png

    Water level sensor installed.
    20251031_175111.jpg

    I looked at the backup controller and realised it would be difficult to pull signals from it since it isn't easy to disassemble. So, I opted to used photo transistors to read the state of the alarm LEDs.
    20251020_112445.jpg

    The photo transistors are held in place with velcro strips for easy removal.

    20251020_131352.jpg

    My monitoring node consists of an ESP32C3 Super Mini ucontroller configured with 5 digital input channels and 1 analog channel to read the alarm LEDs and water level. I'm using MQTT, for this project, to send the data to Home Assistant.
    20251018_171532.jpg

    Integrated into Home Assistant
    fa40f775-0714-4d36-adcb-d148e4928c3f-image.png
    Overall, after a few adjustments, the systems works really well and provides some peace of mind.


  • Contest Winner

    @KevinT That is a great project. How do you measure the water level?



  • I have exactly the same level sensor but not the controller. The level sensor output is essentially a variable resistor. When the float is at the top, the resistance is minimum, at the bottom, maximum. I have the 0-190 ohm sensor.

    My "reader" is an ESP-12F (ESP8266). Put a 470 ohm resistor from 3.3V to the Analog input and one of the leads of the sensor and the other lead to ground. The program is Tasmota configured for analog input

    I power it with this power supply.

    Typically Tasmota devices use the MQTT method of delivering data. and is auto-configured in the Home Assistant controller.

    This could could work great with an Arduino in the MySensors eco-sphere. The could would basically be: read analog, send.



  • @TheoL Thanks. As @OldSurferDude says, it's an analog sensor I got off AliExpress Fuel level sensor. I chose a 0-190 ohm sensor, 450 mm long. I wired a 100 ohm resistor in series with the sensor and read the voltage with an analog channel. I do a little extra math to linearise the measurement.
    Fuel Sensor.PNG
    I normally use mysensor nodes, but since this one is always on, I tried using MQTT for a change.


  • Contest Winner

    @KevinT Any idea how much current that sensor is drawing? I came across one circuit that consumes 1 micro amps regardless if the tank is empty or full. Still struggling to get it to work. But that's my low knowledge of electronics 😉


Log in to reply
 

Suggested Topics

40
Online

11.7k
Users

11.2k
Topics

113.0k
Posts