Water Level Indicator


In this project, we will create a water level indicator with three levels inside a tank using an Arduino and a water sensor, as well as three LEDs and a buzzer to indicate when the tank is full.


  1. To understand how a water indicator works
  2. When the circuits indicate that the tank is half full, take the water level.
  3. To learn how to construct simple structures

Industry-Based Applications

Water level indicator circuits are commonly used in factories, chemical plants, electrical substations, and other liquid storage systems. This simple system can be used for a variety of purposes, including monitoring a sump pit (to control pump activation), rainfall detection, and leak detection. Electronic water level circuits can detect if there is a water leak somewhere in the factory. When the water level is too high, too low, or exceeds the upper limit, an alarm sound or different colors of a light bulb can easily detect the water level. We can also measure the fuel level in automobiles and liquid-level containers, which are common in businesses.

Project Methodology

The circuit is set up to show three levels of water in the tank: low but not empty, half and full but not overflowing. All of the LEDs turn off when there is no water in the tank, indicating that the tank is completely empty. When the water level rises and comes into contact with the sensor, the Red LED illuminates, indicating that there is water in the tank. Yellow LED will light up as the water level rises and reaches half the tank. When the water level in the tank reaches full, the buzzer sounds an alarm to indicate that the tank is full.


  1. Arduino Uno Arduino Uno 
  2. Water level sensor module  Water level sensor module
  3. Light-emitting diode (LED’s)  Light-emitting diode (LED's)
  4. Buzzer  Buzzer 
  5. Connecting wires   Connecting wires 
  6. Breadboard   Breadboard  

Step 1: Assemble LED on the Breadboard

Assemble LED on the Breadboard

Red Colour: (indicating extremely low level)
Yellow Colour: (indicating half water level)
Green Colour: (indicating full water level)

  • Connect the cathode of each led to the breadboard’s power rail (blue rail), which will serve as the ground supply.
  • Connect the LED anode to various nodes.
  • Connect a 220-ohm resistor to each LED in series.

Step 2: Connect the Arduino and the LED Connect the LED to the Arduino’s digital pins as shown below:

Connections for LED with digital pins on Arduino

  • Red LED wired to Digital to pin 13.
  • Yellow LED wired to Digital to pin 12.
  • Green LED Wired to Digital to pin 11.

Step 4: Connect the Water Sensor with Arduino

Water Sensor with Arduino

Connect the water level sensor to Arduino in the following manner:

You must connect the Water Sensor pins to the Arduino pins. The Negative (-) pin will need to be wired to the Arduino’s GND. The (+) pin must be connected to VCC on the Arduino, and the (S) pin must be connected to A0 on the Arduino using the wires provided.

Step 5: Connect Buzzer

Connect Buzzer

Connect the buzzer’s positive to Arduino’s Digital Pin 8 and its negative to the ground on the board.
Below is a video with more information and visuals:


After assembling all of the components on the breadboard and connecting them to the Arduino, students will place the water sensor in the empty tank and slowly pour water into it.

Here is Code: https://duino4projects.com/wp-content/uploads/2022/11/Water-level-Indicator-With-Sensor.txt

About The Author

Muhammad Bilal

I am a highly skilled and motivated individual with a Master's degree in Computer Science. I have extensive experience in technical writing and a deep understanding of SEO practices.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top