This project monitors water level in a tank using an ESP32 + ultrasonic sensor and controls a pump.
It serves a local web dashboard to view water level and manually toggle the pump.
- ESP32 Dev Board
- Ultrasonic Sensor (HC-SR04)
- Water Pump + Relay Module / MOSFET
- Jumper wires, breadboard
-
Ultrasonic Sensor
- TRIG → GPIO5
- ECHO → GPIO18
- VCC → 5V
- GND → GND
-
Pump
- Controlled via GPIO19 through Relay/MOSFET
- Upload the sketch to ESP32.
- Connect to Wi-Fi AP
ESP32-AP(password:12345678). - Open browser → go to
192.168.4.1. - Dashboard shows water level % and pump state.
- Click “Toggle Pump” to manually control the pump.