• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Circuit Ideas for You

Get free circuit ideas online.

  • Home
  • Privacy Policy
  • About
Home » How to Create a Water Level Sensor Circuit with Arduino

How to Create a Water Level Sensor Circuit with Arduino

Last updated on 30 July 2025 by Admin-Lavi Leave a Comment

For fun and learning project.

We learn basic electronics, coding and sensor uses.

Here we will learn How to Create a Water Level Sensor Circuit with Arduino

This guide teaches us how to make water sensor.

It is good for stopping overflow, checking water in tank or auto watering plants.

We can use Arduino Uno which is easy and flexible, water sensor, IC 7809, LED and resistor.

Follow steps to connect parts, write code, send to Arduino and read water level data to do actions.

Coding:

const int waterSensorPin = 2; // Replace 2 with the actual pin number used for the water level sensor

void setup() {
  pinMode(waterSensorPin, INPUT);
  Serial.begin(9600);
}

void loop() {
  int sensorValue = digitalRead(waterSensorPin);

  if (sensorValue == HIGH) {
    Serial.println("Water detected");
  } else {
    Serial.println("No water detected");
  }

  delay(1000); // Delay for 1 second
}

Code Explanation:

  • WaterSensorPin is the pin number for water sensor.
  • In setup() WaterSensorPin set as input and serial starts at 9600 speed.
  • In loop(), digitalRead() check value from WaterSensorPin.
  • If value is HIGH that means water is there and will show message in serial monitor.
  • If LOW then there is no water found.
  • One second delay is used and so serial monitor does not show too many messages.

Circuit Working:

How to Create a Water Level Sensor Circuit Diagram with Arduino

Parts List:

ComponentQuantity
Resistors
220Ω 1/4 watt1
Semiconductors
Arduino UNO board1
IC 78091
Water level sensor1
Red LED 5mm 20mA1
Multimeter1
Probes Red and Black2

In this circuit when water drop falls in glass the output pin voltage goes up with water level.

This happens because sensor part on PCB feels water and changes voltage.

Water level sensor has two probes.

One probe goes in water and lets current flow and other stays dry as reference.

IC 7809 gives steady 9V power to Arduino and sensor.

Sensor module has 3 pins and 2 are power pins.

Connect them to Arduinos 5V and GND.

This makes circuit work well.

LED and resistor show water present or not and if water is found then LED turns ON.

Resistor stops too much current and saves LED from burning.

How to Build:

To build a Water Level Sensor Circuit with Arduino following steps should be followed for connections:

  • Collect all parts as shown in the circuit diagram.
  • Connect IC 7809 to give steady 9V power to Arduino.
  • GND pin to Arduino GND
  • VCC pin to Arduino 5V
  • OUT pin to Arduino pin 2
  • Arduino pin 13 connects to 220Ω resistor and with red LED in series with short leg cathode of LED connects to Arduino GND

Testing:

  • Take a multimeter which is used to check voltage or resistance.
  • Use a container with water like a tap or small tank.
  • Power Arduino by plugging into PC.
  • Set multimeter to DC voltage mode.
  • Connect Multimeter positive probe to sensor OUT pin
  • Multimeter negative probe connects to sensor GND pin
  • When sensor is dry check multimeter reading.
  • Voltage may be HIGH or LOW it depends on sensor type.
  • Slowly put sensor in water.
  • Voltage should change with LOW to HIGH or vice versa.
  • Be sure voltage change matches the Arduino code.
  • For example: HIGH means water found and LOW means no water.
  • Repeat steps 10 to 12 a few times to get steady correct results.

Conclusion:

Using parts from circuit diagram and steps above we can make working circuit that checks if water is there or not.

We can also add more smart features later like turning on alarm or controlling other devices based on water level.

References:

Simple water level indicator with input and output project

Filed Under: Arduino Projects, Sensors and Detectors

About Admin-Lavi

Lavi is a B.Tech electronics engineer with a passion for designing new electronic circuits. Do you have questions regarding the circuit diagrams presented on this blog? Feel free to comment and solve your queries with quick replies

Previous Post: « Exploring Free Energy Concepts in Permanent Magnet Motors
Next Post: Arduino Based Air Quality Monitoring Circuit »

Reader Interactions

Leave a Reply Cancel reply

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

Primary Sidebar




Categories

  • Alarm Circuits (34)
  • Amplifier Circuits (67)
  • Arduino Projects (59)
  • Audio Circuits (98)
  • Automobile Circuits (19)
  • Battery Charger Circuits (49)
  • Free Energy (13)
  • Heater and Temperature Controllers (10)
  • High Voltage (1)
  • Indicator Circuits (41)
  • Inverter Circuits (14)
  • LDR Circuits (17)
  • LED and Lamps (118)
  • Meters and Testers (29)
  • Motor Controllers (18)
  • Oscillator Circuits (34)
  • Power Supply Circuits (93)
  • Remote Control Circuits (7)
  • Security and Protection (26)
  • Sensors and Detectors (98)
  • Solar Circuits (17)
  • Timer Circuits (31)
  • Transistor Circuits (57)
  • Transmitter Circuit (14)
  • Tutorials (5)
  • Water Level Controller (4)

Recent Posts

  • Smart Energy Meter Circuit with Arduino UNO
  • LED Binary Counter Circuit
  • Audio Spectrum Analyzer Circuit using IC MSGEQ7
  • RGB LED Color Control Circuit with LDR and Arduino
  • Arduino Based GPS Digital Clock Circuit

Recent Comments

  1. Admin-Lavi on Constant Voltage, Constant Current Battery Charger Circuit
  2. Bill on Constant Voltage, Constant Current Battery Charger Circuit
  3. Admin-Lavi on Long Range FM Transmitter Circuit (2km)
  4. Sina on Long Range FM Transmitter Circuit (2km)
  5. Admin-Lavi on Long Range FM Transmitter Circuit (2km)

Copyright © 2025 | New Circuit Ideas