• 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 13 June 2026 by Admin-Lavi Leave a Comment

For fun and learning project, we will learn about basic electronics, coding and sensor uses.

Here, we will learn How to Create a Water Level Sensor Circuit with Arduino and this guide teaches us how to make water sensor.

Furthermore, 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, so follow steps to connect parts, write code, send to Arduino and read water level data to do actions.

Arduino Code:

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 the signal reads LOW, the sensor detects no water
  • The program uses a one-second delay so the serial monitor does not display too many messages.

Circuit Working:

How to Create a Water Level Sensor Circuit Diagram with Arduino

Parts List:

ComponentsQuantity
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 and 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 and sensor module has 3 pins and 2 are power pins.

Then connect them to Arduinos 5V and GND and this makes circuit work well.

After that, the LED and resistor indicate whether water is present.

If the sensor detects water, the LED turns ON and the resistor limits the current to prevent the LED from burning out.

How to Build:

To build a Water Level Sensor Circuit with Arduino follow below steps for connections:

  • First, collect all parts as shown in the circuit diagram.
  • Next, connect IC 7809 to give steady 9V power to Arduino.
  • Now GND pin go to Arduino GND, VCC pin go to Arduino 5V and then OUT pin go to Arduino pin 2
  • Then 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 to check voltage or resistance.
  • Then use a container with water like a tap or small tank.
  • Power Arduino by plugging into PC and then set multimeter to DC voltage mode.
  • Connect Multimeter positive probe to sensor OUT pin and 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 and then slowly put sensor in water.
  • Voltage should change with LOW to HIGH or vice versa and be sure voltage change matches the Arduino code.
  • For example: HIGH means water found and LOW means no water.
  • Finally, repeat steps 10 to 12 a few times to get steady correct results.

Conclusion:

To conclude, 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.

Filed Under: Arduino Projects, Automation Circuits, DIY Projects, Mini 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

  • 555 Timer Projects (122)
  • Alarm Circuits (75)
  • Amplifier Circuits (92)
  • Arduino Projects (103)
  • Audio Circuits (189)
  • Automation Circuits (103)
  • Automobile Circuits (38)
  • Battery Charger Circuits (86)
  • DIY Projects (365)
  • Free Energy (12)
  • Heater and Temperature Controllers (32)
  • High Voltage (23)
  • Hobby Circuits (194)
  • Indicator Circuits (62)
  • Inverter Circuits (19)
  • IoT projects (8)
  • LDR Circuits (45)
  • LED and Lamps (195)
  • Meters and Testers (43)
  • Mini Projects (279)
  • Motor Controllers (25)
  • Oscillator Circuits (63)
  • Power Supply Circuits (221)
  • Radio Frequency (7)
  • Remote Control Circuits (11)
  • Renewable energy (6)
  • Security and Protection (105)
  • Sensors and Detectors (223)
  • Solar Circuits (31)
  • Timer Circuits (62)
  • Transistor Circuits (175)
  • Transmitter Circuit (20)
  • Tutorials (23)
  • Voltage Regulator (38)
  • Water Level Controller (10)

Recent Posts

  • Low Current Controlled Battery Charger Circuit using LM723 IC
  • 741 Op-Amp Treble Booster Circuit
  • Simple Diode and Transistor Based Audio Limiter Circuit
  • Simple 500mW Speaker Driver Circuit
  • Easy DIY LM386 Audio Amplifier Circuit

Recent Comments

  1. Tony Gallegos on NTC Thermistor Based Temperature to Voltage Converter Circuit
  2. colin on Simple Single Transistor Audio Amplifier Circuit
  3. How to Make a Bird Chirping Noise Easily on Chirping Bird Sound Generator Circuit
  4. Transistor Based Medium Impedance Preamplifier Circuit - Circuit Ideas for You on Low Impedance Input Transistor Preamplifier Circuit
  5. Admin-Lavi on Alternate Red Green LED Flasher Circuit

Copyright © 2026 | New Circuit Ideas