IoT water tank level monitor and pump controller (ESP32)
Solves a real problem in Indian homes: overflowing or empty overhead tanks. A waterproof JSN-SR04T ultrasonic sensor in the tank lid measures the distance to the water; the ESP32-C3 turns that into a percentage, shows it on an OLED and on a web page any phone on the Wi-Fi can open, and sounds a buzzer when the tank is nearly full. A relay output can switch the pump's starter so the tank fills itself between the levels you set.
Complete kit
₹2,989
Every part below as one item: we collect, check and ship the whole set together, with one GST invoice. Ships in about 11 business days.
View complete kitParts only: available parts total
₹2,625
5 of 5 line items available now.
Electronics
| Part | Role | Qty | Unit | Line | Status |
|---|---|---|---|---|---|
| Seeed Studio XIAO ESP32C3Single | Wi-Fi controller | 1 | ₹608 | ₹608 | ships in about 11 business days |
| Waterproof ultrasonic sensor (JSN-SR04T)Module | Waterproof ultrasonic level sensor (2.5 m cable) | 1 | ₹380 | ₹380 | ships in about 6 business days |
| Grove 0.96-inch OLED display (128 × 64)Module | Level display | 1 | ₹741 | ₹741 | ships in about 11 business days |
| SmartElex 5V 3A 2 Channel Signal Relay Module | Relay output for the pump starter | 1 | ₹181 | ₹181 | ships in about 6 business days |
| Electronics fun kit with 830 breadboardKit | 830-point breadboard, jumper wires, LEDs, resistors, buttons and buzzer | 1 | ₹715 | ₹715 | ships in about 6 business days |
How to build it
- Drill a hole in the tank lid and fix the sensor head facing straight down at the water; keep its electronics board indoors or in a box.
- Wire the sensor's TRIG to a GPIO pin and its ECHO through a resistor divider (5 V to 3.3 V) to another.
- Wire the OLED to I2C and the relay module's input to a GPIO pin.
- Upload the sketch with your tank's empty and full distances, and check the percentage as you fill it.
- Open the board's IP address on your phone to see the level, and set the pump-on and pump-off levels.
- Have an electrician connect the relay to the pump starter's control circuit; don't wire mains yourself.
Questions
- What tank depth does it work for?
- From about 25 cm to 4.5 m between the sensor and the water, which covers household overhead and sump tanks.
- Can the relay switch a 1 HP pump directly?
- No. The relay switches the starter or contactor that controls the pump; the pump's current must go through a starter rated for it, wired by an electrician.
- Needs a 5 V USB phone charger, a USB-C cable and a small enclosure, not included.
- Mains wiring to the pump must be done by a qualified electrician.
Prices are final and follow what Indian distributors have in stock (refreshed nightly). Out-of-stock parts are not added to the cart.