Built to order

IoT Water Tank Overflow Controller with Level Display

This project builds an automatic water-tank controller that ends overflow waste and dry-run pump damage: an ultrasonic sensor measures the tank level continuously, an ESP32 switches the pump on at the low mark and off at the high mark with hysteresis, and a cloud dashboard shows the live level, pump state and run history. Dry-run protection, a manual/auto selector and a local LED level bar complete the build. The level thresholds are set by the student for their own tank geometry during calibration — no figures are pre-claimed. Suitable for B.E./B.Tech final-year projects in Electronics,

Chat on WhatsApp — get a quotation

IoT & Embedded ESP32HC-SR04 ultrasonic sensorArduino IDERelay + contactor pump switchingCloud level dashboardLED bar graph + 16x2 LCDManual/auto selector switchDemo tank + pump rigHybrid
IoT Water Tank Overflow Controller with Level Display — project thumbnail preview
More project photos (3)

The problem

Overhead tanks overflow daily in homes, hostels and small industries — thousands of litres of pumped water (and the electricity that lifted it) simply run off the roof because someone forgot the motor. Float switches exist but stick, corrode and give no information; and a pump that runs dry when the sump is empty burns out its seals. The engineering gap is a controller that manages the whole filling cycle intelligently and tells you what it is doing: continuous level measurement, hysteresis-based pump control, dry-run protection, and remote visibility. This project builds it on an ESP32: an HC-SR04 ultrasonic sensor (2 cm–4 m range per datasheet) measures the tank level without touching the water, the firmware drives the pump contactor through a relay with start/stop hysteresis, a dry-run timer guards the pump, and a cloud dashboard renders a live tank animation, pump state and a run-event log.

SYSTEM FLOW

5 components 4 connections

Live flow
Drag to explore
100%
sensorUltrasonic sensor

HC-SR04 pings the water surface from the tank lid; the echo time gives the level with a median filter.

Follow the working sequence

How it works

  1. The ultrasonic sensor pings the water surface at intervals; the ESP32 converts echo time to level and applies a median filter.
  2. In AUTO mode, when the level falls to the low threshold, the firmware energizes the pump relay/contactor and logs PUMP ON.
  3. The level rises; at the high threshold the pump stops and PUMP OFF is logged — the hysteresis band sits between the two marks.
  4. If the level fails to rise within the dry-run timeout after a start, the controller trips the pump, flags DRY RUN locally and on the dashboard, and requires a manual reset.
  5. The dashboard continuously renders the animated tank level, pump state and event log; the LED bar mirrors the level locally.
  6. The manual/auto switch lets the user run the pump directly for testing, with dry-run protection still active.

Tech stack:

  • ESP32 development board (Wi-Fi)
  • HC-SR04 ultrasonic sensor (2 cm–4 m per datasheet)
  • Relay module + contactor for pump switching
  • Manual/auto selector switch
  • 10-LED bar-graph level display + 16x2 LCD status
  • Cloud dashboard (Blynk/ThingSpeak class) with tank animation and event log
  • Demo tank + pump rig accessories for calibration
  • Arduino IDE (C/C++ firmware)
Parameter Value
Controller ESP32 (Wi-Fi for dashboard telemetry)
Level sensor HC-SR04 ultrasonic, 2 cm–4 m range per datasheet, median-filtered
Pump control Relay + contactor; hysteresis start/stop; manual/auto selector
Protection Dry-run timeout trip with lockout and manual reset
Display 10-LED bar graph + 16x2 LCD; cloud dashboard with animated tank
Dashboard Live level %, pump state, run-event log with timestamps
Thresholds Low/high marks and dry-run timeout set by student for their tank
Power 5 V/3.3 V logic supply; pump contactor rated for the demo pump

Project features

  • [Non-contact level sensing] The HC-SR04 ultrasonic sensor measures level from the tank lid — no float to stick, no probe to corrode — with a median filter against ripples.
  • [Hysteresis pump control] Pump starts at the low threshold and stops at the high threshold; the deadband prevents the rapid on/off cycling that kills contactors.
  • [Dry-run protection] If the level does not rise within the expected time after the pump starts, the controller trips, flags DRY RUN on the LCD and dashboard, and locks out until reset.
  • [Live level dashboard] The cloud dashboard shows an animated tank, current level in percent, pump ON/OFF state and a timestamped run-event log.
  • [Manual/auto selector] A physical switch gives manual pump control for maintenance, with the auto logic and all protections active in AUTO.
  • [Local LED level bar] A 10-LED bar graph on the enclosure shows the level at a glance without opening the dashboard.
  • [Student-calibrated thresholds] Low/high marks and the dry-run timeout are set by the student for their tank geometry — the calibration procedure is part of the kit.

What is included

  • Working tank-controller prototype (ESP32, ultrasonic sensor, relay/contactor, displays, enclosure)
  • Complete firmware source code (level filtering, hysteresis, dry-run, dashboard sync)
  • Live level dashboard setup with tank animation and event log
  • Circuit and wiring documentation (including contactor wiring notes)
  • Tank-geometry calibration procedure for threshold setting
  • Component list with ratings
  • Project report PDF (level-sensing theory, control logic, methodology, calibration results)
  • PPT presentation for final review
  • Viva Q&A preparation document (ultrasonic sensing, hysteresis control, pump protection)
  • Setup and demonstration guide

Limitations & prerequisites

  • Level accuracy depends on the tank geometry and surface conditions: foam, heavy ripples and sloped tank roofs affect ultrasonic readings, and the report must document the student's own observed behavior.
  • The HC-SR04 has a minimum range (~2 cm) and a beam cone — the sensor must be mounted per the documented clearances, not flush against the expected high-water mark.
  • Dry-run protection is time-based reasoning, not a flow measurement: it detects "level not rising", which covers empty sumps and blocked lines but is not a substitute for a flow switch in a real installation.
  • This is an academic demonstration controller; a real building installation needs properly rated contactors, enclosures and wiring by a qualified electrician.
  • The pump contactor must be rated for the actual pump's starting current; the kit specifies the rating logic and the student must not underrate it.

Frequently Asked Questions

How does it measure the water level?

An HC-SR04 ultrasonic sensor mounted at the tank lid pings the water surface; echo time converts to level, with a median filter smoothing ripples.

What stops the tank overflowing?

Hysteresis control: the pump starts at your low mark and stops at your high mark, so it can never run past full in AUTO mode.

What is dry-run protection?

If the level doesn't rise within the set timeout after the pump starts (empty sump, blocked line), the controller trips, flags DRY RUN and locks out until you reset.

What shows on the dashboard?

An animated tank with live level percentage, pump ON/OFF state, and a timestamped log of every pump start, stop and trip.

Can I set my own tank's levels?

Yes — the low/high thresholds and dry-run timeout are calibrated to your tank geometry with the included procedure.

Is this project suitable for a final-year project?

Yes — for Electronics, Electrical and IoT programs. It demonstrates non-contact sensing, hysteresis control, protection logic and a live IoT dashboard. Suitable for B.E./B.Tech final-year projects in Electronics, Electrical, IoT and Embedded Systems.

Components & software requirements
  • ESP32 development board (Wi-Fi)
  • HC-SR04 ultrasonic sensor (2 cm–4 m per datasheet)
  • Relay module + contactor for pump switching
  • Manual/auto selector switch
  • 10-LED bar-graph level display + 16x2 LCD status
  • Cloud dashboard (Blynk/ThingSpeak class) with tank animation and event log
  • Demo tank + pump rig accessories for calibration
  • Arduino IDE (C/C++ firmware)
Delivery information

Built-to-order project. Delivery timeline is shared after order confirmation based on current queue.

Support terms

Complete documentation, setup guide, and viva preparation included. Support for setup and explanation provided.

Download free synopsis (PDF)

Enter your name and WhatsApp number — the synopsis PDF downloads immediately. We may send occasional project updates on WhatsApp; no spam.

Get a quotation