
ESP32-S3
Smart Water Tank Monitoring & Automatic Pump Control Using ESP32
Abstract:
The Smart Water Tank Monitoring & Automatic Pump Control System is an ESP32-based project designed to monitor tank water levels and automate water filling. It uses an ultrasonic sensor to estimate the water level, a separate water level sensor for additional level detection, and a relay to control the pump. An OLED display shows the tank’s fill percentage and pump status. By starting the pump when water falls below a defined threshold and stopping it at the upper threshold, the system reduces manual checking and helps prevent overflow.
Detailed Project Information:
The ultrasonic sensor is mounted at the top of the tank and measures the distance to the water surface. The ESP32 converts this distance into an estimated fill percentage using calibrated empty and full tank measurements. A separate water level sensor can detect a specific level and provide an additional input for pump control.
When the water level reaches the configured low threshold, the controller activates the relay to start filling the tank. The pump continues running until the upper threshold is reached, then switches off. Using separate start and stop thresholds helps prevent frequent pump switching when the water level fluctuates.
The OLED displays the current water level and whether the pump is ON or OFF. The controller should also reject invalid sensor readings and stop the pump when a sensor fault is detected. Pump switching requires a relay or contactor rated for the selected motor.
This project is suitable for demonstrating embedded systems, sensor calibration, automatic control, and water management in homes, colleges, offices, and small buildings. Wi-Fi monitoring can be added through the ESP32 with additional software.
Key Features:
- Automatic water level measurement.
- Estimated tank fill percentage.
- Pump start and stop based on configured thresholds.
- Overflow prevention through upper-level detection.
- Additional water level sensor input.
- OLED display for water level and pump status.
- Reduced need for manual monitoring.
Main Components:
ESP32, ultrasonic sensor, water level sensor, relay module, water pump, OLED display, and suitable power supply.
All Projects




