Built to order

Automatic Water Tank Overflow Controller using Ultrasonic Sensor

This project stops the two classic water-tank failures: the overflowing overhead tank and the pump burned out by dry running. A waterproof ultrasonic sensor measures the overhead tank level without touching the water, the controller starts the pump at low level and stops it at full, a sump-low interlock prevents dry-run pumping, and an LCD shows live level with a buzzer on faults. It is clean, honest control engineering. Suitable for B.E./B.Tech final-year projects in IoT and Embedded Systems.

Automatic Water Tank Overflow Controller using Ultrasonic Sensor — project thumbnail preview
More project photos (2)

The problem

Every Indian household knows the routine: switch the pump on, forget it, and watch water pour off the terrace — or worse, run the pump dry when the sump is empty and burn the motor. This controller removes the human from the loop. A waterproof JSN-SR04T ultrasonic sensor mounted under the tank lid measures the water level continuously; the controller switches the pump through a contactor/relay at the low-level mark and cuts it at the full mark, with hysteresis so the pump doesn't chatter at the boundary. A second sensor (or float switch) on the sump/ground tank interlocks the pump: no water below, no pumping, and the buzzer plus LCD announce the dry condition. A manual mode covers testing, and a pump-runtime log helps spot abnormal cycles. The scope is stated plainly: it automates a domestic single-pump setup — it is not a municipal waterworks controller.

How it works

  1. The JSN-SR04T pings the water surface at fixed intervals; the echo time converts to distance, then to level percent against the buyer-calibrated empty/full marks.
  2. When the level falls to the low mark, the controller energizes the pump relay/contactor and logs a start event.
  3. When the level reaches the full mark, the controller drops the pump and logs a stop event; the hysteresis band keeps the pump from short-cycling.
  4. Before every start — and continuously while running — the sump interlock is checked; a dry sump blocks or stops the pump and raises the buzzer + LCD fault.
  5. The LCD shows live level, pump state and any fault; the manual switch bypasses automation for testing, flagged clearly on screen.
  6. The event log (level crossings, pump cycles, dry-run blocks) is kept for the report's data section and the buyer's own verification.

Tech stack:

  • Arduino Uno (ATmega328P) or ESP32 variant
  • JSN-SR04T waterproof ultrasonic sensor
  • Sump float switch / second level sensor (interlock)
  • Pump relay/contactor module
  • 16x2 character LCD + buzzer
  • Manual override switch
  • Arduino IDE (C/C++ firmware)
Parameter Value
Controller Arduino Uno (or ESP32), level state machine with hysteresis
Level sensing JSN-SR04T waterproof ultrasonic, non-contact; empty/full marks buyer-calibrated
Pump control Relay/contactor output; start at low mark, stop at full mark, configurable dead band
Dry-run protection Sump interlock blocks/ends pumping; buzzer + LCD fault annunciation
Display 16x2 LCD: level %, pump state, fault flags
Logging Pump start/stop + level-crossing event log
Power 5 V DC logic; pump switched through relay/contactor (demo pump)

Project features

  • [Non-contact level sensing] Waterproof JSN-SR04T ultrasonic sensor measures tank level from under the lid — no floats to jam, no probes to corrode.
  • [Automatic pump control] Pump starts at the buyer-set low level and stops at the full level, with hysteresis preventing rapid on/off cycling.
  • [Dry-run protection] Sump-low interlock blocks pumping when the source is empty, protecting the motor; LCD + buzzer announce the condition.
  • [Hysteresis band control] Separate start and stop levels with a configurable dead band — proper control practice, documented in the report.
  • [LCD level display] Live level in percent plus pump ON/OFF state and fault flags on a 16x2 LCD.
  • [Manual override mode] Panel switch forces manual pump control for testing and priming, with the LCD flagging MANUAL mode.
  • [Pump runtime log] Start/stop events with timestamps are logged, so abnormal cycling shows up in the data for the report.

What is included

  • Working overflow-controller prototype (controller, JSN-SR04T, sump interlock, pump relay, LCD, buzzer, demo tanks/pump)
  • Complete firmware source code (level measurement, hysteresis control, dry-run interlock, logging)
  • Circuit and wiring documentation with relay/contactor safety notes
  • Component list with ratings
  • Level-calibration and demo procedure guide
  • Project report PDF (level-sensing background, ultrasonic theory, hysteresis control, methodology, test procedure)
  • PPT presentation for final review
  • Viva Q&A preparation document (ultrasonic ranging, hysteresis, contactor driving, dry-run physics)
  • Setup and demonstration guide

Limitations & prerequisites

  • Demonstrated on scaled demo tanks with a small demo pump; real terrace-tank wiring and plumbing are the buyer's deployment by a qualified electrician/plumber.
  • Ultrasonic readings need the buyer's own empty/full calibration; foam, steam or sloped tank lids can disturb readings — documented in the setup guide.
  • The sump interlock needs its own sensor/float fitted at the source; the base prototype demonstrates it on the demo rig.
  • Pump ratings are limited to the relay/contactor fitted; switching a large borewell pump needs a contactor sized by the buyer.
  • Event timestamps need an RTC module (listed as an option); the base build logs sequence without wall-clock time.

Frequently Asked Questions

How does it detect the water level?

A waterproof JSN-SR04T ultrasonic sensor under the tank lid measures the distance to the water surface — non-contact, so nothing jams or corrodes. Empty/full marks are calibrated during setup.

How does it prevent dry running?

A sump-low interlock (float switch or second sensor) blocks the pump from starting — and stops it — when the source is empty, with buzzer and LCD annunciation.

Will the pump switch on and off repeatedly near the level marks?

No — separate start and stop levels with a configurable hysteresis dead band prevent short-cycling; this is documented control practice.

Can it control my home's actual pump?

The prototype demonstrates the logic on demo tanks. Connecting to real household wiring must be done by a qualified electrician with a properly rated contactor.

What are the main limitations?

Scaled demo rig, buyer calibration needed, ultrasonic limits (foam/steam), pump sizing by buyer.

Is this project suitable for a final-year project?

Yes — for IoT and Embedded Systems programs. It covers ultrasonic sensing, hysteresis control, interlock safety logic and relay driving, all strong viva material. Suitable for B.E./B.Tech final-year projects in IoT and Embedded Systems.

Components & software requirements
  • Arduino Uno (ATmega328P) or ESP32 variant
  • JSN-SR04T waterproof ultrasonic sensor
  • Sump float switch / second level sensor (interlock)
  • Pump relay/contactor module
  • 16x2 character LCD + buzzer
  • Manual override switch
  • 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 abstract (PDF)

Related guides

All guides
Blueprint-style technical illustration of an ESP32 development board at the centre, with sensor nodes, data-flow arrows and a circuit-brain motif representing an AI agent reasoning and sending decisions back.Engineering students building IoT or embedded final-year projects who want to add local AI agent behaviour with ESP32, MQTT and a small language model.

AI Agents on ESP32: Agentic IoT Final-Year Projects

An agentic IoT system observes, reasons, acts, remembers and explains. On ESP32 that means a split architecture: the chip senses and acts while a small local model (Ollama on your laptop) reasons over MQTT — a full LLM needs gigabytes of RAM the chip doesn't have. This guide covers three working patterns (host-reasoned agent, on-device tinyML on ESP32-S3, and a hybrid of both), plus Wi-Fi CSI presence sensing, parts and budget for India, code shapes, and honest limits to state in your report.

Read guide
Technical illustration of three electronic control units linked by a twisted-pair CAN bus cable carrying signal pulses between them.Electronics, E&TC, IoT and robotics students who keep hearing “CAN bus” in EV, automotive and industrial project ideas and want to understand it properly before wiring anything

CAN Bus Basics for Students: How ECUs Communicate

CAN bus is the shared network that lets dozens of controllers in a car, EV or robot communicate over two wires. This guide explains message IDs, arbitration, the physical layer, frame structure, error handling and CAN FD, then walks through building a working two-node bench network with an ESP32 and a transceiver.

Read guide
Illustration of a quadcopter drone build showing labeled parts including frame, motors, propellers, ESCs, flight controller, and battery.B.E./B.Tech Electronics, Mechanical, and Computer Science students planning to build a quadcopter drone who need to select compatible parts without wasting money on mismatched

Drone Build: Parts Selection Guide

Picking drone parts that actually work together is a sizing problem, not a shopping problem. This guide walks the compatibility chain — frame to props to motors to ESCs to battery — with the thrust math, firmware choices, LiPo safety, and the bench-test order that prevents disasters.

Read guide
Get a quotation