Automatic Water Level Indicator and Controller using Arduino
We will use ultrasonic sensors to measure the water level in this Arduino based automatic water level controller and indicator project. A fundamental principle of ultrasonic distance meas…

Know the mission before touching a wire.
Understand what you are making, prepare the right tools, and make the workbench safe.
Project details
Automatic Water Level Indicator and Controller using Arduino is a arduino project. We will use ultrasonic sensors to measure the water level in this Arduino based automatic water level controller and indicator project. A fundamental principle of ultrasonic distance meas…
- Source pages
- 789-794
- Named parts
- 6
- Build goal
- Working, tested prototype
Tools you need
- Digital multimeter
- Wire stripper and side cutters
- Soldering iron with a fine tip
- Current-limited bench supply
- Computer with a data-capable USB cable
Use eye protection, good lighting, and a clean insulated surface throughout the build.
Safety precautions
- Disconnect every power source before changing a connection.
- Check component polarity, pinout, and supply voltage twice.
- Use a current limit for the first power-up.
- Keep liquids, loose metal, and uninsulated wires away from the bench.
Gather, identify, and understand every part.
Use the standardized inventory, then open What's this? to learn each part's role, advantages, limitations, handling, and specifications.
What's this?Image, role, pros, cons, handling & specifications

Arduino Uno
A programmable controller that reads inputs, makes decisions, and drives the project's outputs.
What it does hereIt is the control centre and must use the documented board, pin map, supply, and logic level.
Buy / compare this part ↗Advantages
- Reprogrammable and reusable
- Large learning ecosystem
- Complex behaviour remains changeable
Limitations
- GPIO voltage and current are limited
- Some pins affect boot or communication
- Loads normally need a driver
Handling
- Disconnect power before rewiring
- Avoid static discharge
- Never power motors, relays, or pumps directly from GPIO
Specifications to verify
- Use the exact model, value, package, and rating listed for Arduino Uno; similar-looking parts are not always interchangeable.
- Confirm operating voltage, logic level, pinout, memory, USB interface, and maximum GPIO current.
What's this?Image, role, pros, cons, handling & specifications

Ultrasonic sensor Module
A sensor converts a physical condition into an electrical signal the circuit can measure.
What it does hereIt provides project input as an analogue, digital, resistive, frequency, or calibrated signal.
Buy / compare this part ↗Advantages
- Adds real-world awareness
- Can usually be tested independently
- Often supports calibration
Limitations
- Readings can drift
- Placement affects results
- Some sensors need warm-up or calibration
Handling
- Protect the sensing surface
- Observe supply voltage and polarity
- Keep signal leads away from noisy power wiring
Specifications to verify
- Use the exact model, value, package, and rating listed for Ultrasonic sensor Module; similar-looking parts are not always interchangeable.
- Confirm supply range, output type, measurement range, accuracy, response time, and pin order.
What's this?Image, role, pros, cons, handling & specifications

x2 LCD
An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.
What it does hereIt presents the circuit result or acts on the physical world.
Buy / compare this part ↗Advantages
- Makes system state visible
- Can be tested separately
- Supports clear troubleshooting
Limitations
- Loads may exceed controller current
- Polarity or driver direction can matter
- Inductive loads create voltage spikes
Handling
- Use the documented driver stage
- Check polarity and load current
- Add flyback protection for inductive loads
Specifications to verify
- Use the exact model, value, package, and rating listed for x2 LCD; similar-looking parts are not always interchangeable.
- Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
What's this?Image, role, pros, cons, handling & specifications

Relay 6 Volt
An output component turns an electrical control signal into light, sound, motion, switching, or displayed information.
What it does hereIt presents the circuit result or acts on the physical world.
Buy / compare this part ↗Advantages
- Makes system state visible
- Can be tested separately
- Supports clear troubleshooting
Limitations
- Loads may exceed controller current
- Polarity or driver direction can matter
- Inductive loads create voltage spikes
Handling
- Use the documented driver stage
- Check polarity and load current
- Add flyback protection for inductive loads
Specifications to verify
- Use the exact model, value, package, and rating listed for Relay 6 Volt; similar-looking parts are not always interchangeable.
- Confirm voltage, current, polarity, interface, driver requirements, and duty cycle.
What's this?Image, role, pros, cons, handling & specifications

ULN2003
A semiconductor stage performs switching, amplification, regulation, rectification, or logic.
What it does hereIt controls current or signal flow at a defined point in the circuit.
Buy / compare this part ↗Advantages
- Fast and efficient
- Compact
- Can control larger loads from smaller signals
Limitations
- Pin order varies
- Sensitive to overvoltage and reverse polarity
- May need cooling or bias components
Handling
- Verify the datasheet pinout
- Avoid static and soldering heat
- Check notch, stripe, or flat-face orientation
Specifications to verify
- Use the exact model, value, package, and rating listed for ULN2003; similar-looking parts are not always interchangeable.
- Confirm pinout, maximum voltage/current, dissipation, gain or forward voltage, and package.
What's this?Image, role, pros, cons, handling & specifications
POWER LEARNING VIEW7805 - integrated circuit
A power component supplies, converts, stores, or regulates energy for the project.
What it does hereIt must provide the documented voltage, polarity, isolation, and sufficient current safely.
Buy / compare this part ↗Advantages
- Stable power improves reliability
- Current limiting protects first tests
- Regulation reduces resets and noise
Limitations
- Wrong polarity can cause immediate damage
- Underrated parts overheat
- Mains circuits require qualified supervision
Handling
- Measure output before connection
- Use a fuse or current limit
- Insulate exposed conductors
Specifications to verify
- Use the exact model, value, package, and rating listed for 7805 - integrated circuit; similar-looking parts are not always interchangeable.
- Confirm input/output voltage, current, polarity, connector, isolation, and thermal rating.
Connect one verified path at a time.
Explore the named components and standardized signal flow, then use Source Check to verify exact physical pins, values, and topology before applying power.
Trace this circuit.
Automatic Water Level Indicator and Controller using Arduino: interactive parts, standardized terminals, responsive anchored wires, student explanations, and the original circuit reference in one shared system.
Trace before wiring
Follow power, ground, inputs, processing, and outputs in that order. Never guess a pin from package shape alone.
Connect with power off
Make short, labelled connections and share a common ground only where the schematic requires it.
Inspect every joint
Check continuity, polarity, adjacent shorts, and loose connections before the first power-up.
Open all source diagrams and build views 2 visuals


Confirm the hardware-only control path.
This project does not include firmware in the source. The circuit itself provides the required behaviour.
How to connect
- Match every controller label to the circuit view and source pin map.
- Join grounds before signal wires when separate low-voltage supplies are used.
- Keep motors, relays, pumps, and other loads on a suitable driver and external supply.
Common mistakes
Reversed VCC/GND, board-label versus GPIO-number confusion, missing common ground, and charge-only USB cables.
Troubleshoot
Disconnect loads, continuity-test one path at a time, then test with a current limit.
Software preparation
No IDE, board package, library, or firmware upload is required for this project.
If you add a programmable controller as an extension, document its pin map separately.
How to upload code
The original design is implemented entirely in hardware, so proceed after verifying the circuit and supply.
Assemble, deploy, test, and troubleshoot.
Use the complete source notes in build order, then pass the final checks before calling the project finished.
Build in functional stages
- Power and regulation
- Controller or processing stage
- Inputs and sensors
- Outputs and loads
- Enclosure and strain relief
Power up safely
- Inspect unpowered continuity first
- Apply the lowest safe current limit
- Measure supply rails before signals
- Add one load at a time
- Record expected and actual results
Work from simple to complex
- Confirm power, ground, polarity, and orientation
- Compare each pin with the source
- Test inputs separately from outputs
- Replace only one variable at a time
- Power off before every correction
Follow the documented instructions.
These notes come from this project's source and remain in their original order.
Project overview
Project build noteWe will use ultrasonic sensors to measure the water level in this Arduino based automatic water level controller and indicator project. A fundamental principle of ultrasonic distance measurements is based on ECHO. After impacting on an obstacle, sound waves travel back to their source as ECHO. We must then only calculate the sound's outgoing and returning times after striking the obstacle, in other words, their traveling time. In addition, we can calculate the distance and get a result from it. The water pump is
automatically turned on when the tank water level drops, so that we can use this concept in our water controller project. For a simplified version of this project, you can check out this simple water level indicator circuit.
Components Required
Project build noteArduino Uno Ultrasonic sensor Module 16x2 LCD Relay 6 Volt ULN2003
7806, PVT
Project build noteCopper wire 9-volt battery or 12 Volt Adaptor Connecting wires Working of Automatic Water Level Controller
Working on this project is very straightforward. This module uses ultrasonic waves to generate sound waves which are reflected by the water in the tank and senses the sound waves as ECHO. In order to send a signal to the ultrasonic sensor module, we have to trigger Arduino to transmit it, and then we will wait for the ECHO to arrive. Arduino measures the time between triggering and receiving ECHOs. Using the following formula, we can
calculate the distance using the sound speed of 340 m/s
Project build noteDistance= (travel time/2) * speed of sound Sound travels at an average speed of 340m per second. We can compute distances from a sensor to the surface of the water using these methods. In order to determine water level, we first need to determine depth. Effort must now be put into determining the total length of the water tank. By subtracting the actual distance from the tank from the total length, we can calculate the water level by subtracting the distance from the tank's length. In the next step we'll need to calculate the distance between the water level and the LCD display. We can then convert the distance into a percentage. Below is a block diagram that explains the complete workings of the water level indicator.
The circuit diagram for the water level controller below shows that pins 10 and 11 of the Arduino are connected directly to the Ultrasonic sensor module's "trigger" and "echo" pins. Four-bit mode is used to connect a 16x2 LCD to the Arduino. In addition to the 3 control pins of Arduino RS, RW and En, GND pins 5 and 6 are also connected through ULN2003 to the buzzer at pin 12, while pin 8 of Arduino is wired through ULN2003 to operate the water pump. The relay and the remaining circuit are powered by a voltage regulator 7805. Water level indicators measure and manage the level of water in multiple different systems, including swimming pools, cooling towers, and pumps and tanks. They act as a basic flow regulator and optimize the performance of a system by controlling water flow. Applications and Uses of Water Level Indicators
There are several applications for water level indicators, including
Project build noteWater level can be controlled in water tanks using this device Activate/deactivate pumps automatically Suitable for factories, commercial buildings, apartments, and homes Measuring the level of fuel in tanks Controlling the level of an oil tank A low-level alarm and a high-level alarm Managing the level of the pool water Switches between life stations Monitoring the level of leachate Controlling the level of water in cooling towers Pump level control for sewage systems Fluid monitoring via remote control
A mechanism to control water levels Control panel for pumps Monitoring of the stream at the individual level Pumps for storing water Tsunami warnings and monitoring sea levels Controlling and monitoring batches of processes Controlling irrigation systems
A Water Level Indicator and Water Alarm Has Many Benefits Indicators and alarms for water levels provide several benefits, such as the
following
Project build noteThe installation process is simple There is very little maintenance required You are alerted when the water level is either too high or too low Alarms for low and high temperatures The compact design Water levels are automatically adjusted Reduce your electricity and water consumption to save money By keeping tanks from overflowing, we can prevent roof and wall leaks Manual labor is reduced to a minimum with automatic operation Easily maintains multiple operations with a small amount of energy Provides information about water levels in any type of tank or reservoir It is easy to hear a water alarm because it is loud
Circuit Explanation
Project build noteAn Ultrasonic sensor module was placed on top of the water tank in the circuit to demonstrate the mechanism. In this sensor module, a distance will be measured between the sensor module and the water surface, and the distance will be displayed on an LCD screen as "Water Surface in Tank is:". In other words, we are displaying an empty space of volume or distance for water rather than its level. As a result of this feature, this system can be applied to any water tank. An Arduino will run a relay to turn the water pump ON when empty water levels reach about 30 cm. A green LED will begin glowing if the water level falls below the cut-off level and the motor is turned on. If the empty space is within 12 cm of the Arduino, the relay is turned off and the display shows "Tanks are full" and "Motors are off". During this time, the relay status LED will also turn off and the buzzer will beep.
You built Automatic Water Level Indicator and Controller using Arduino.
You followed the full workflow from understanding the mission to testing the finished project. That is a real engineering achievement - well done.
Browse all 500 projects