WATER LEVEL DETECTION USING ARDUINO NANO

by DESHBOT in Circuits > Arduino

26 Views, 0 Favorites, 0 Comments

WATER LEVEL DETECTION USING ARDUINO NANO

WhatsApp Image 2026-09-18 at 10.20.43 AM.jpeg

The Water Level Detection project is a simple electronics project made using an Arduino Nano and a water sensor. The system detects the presence and level of water and gives an indication through the Arduino Nano's built-in LED.

This project is useful for learning how analog sensors work with Arduino and how sensor readings can be used to control an output.

Supplies

des 1.jpeg
uno.jpeg
WhatsApp Image 2026-09-18 at 11.10.57 AM.jpeg

Deshbot shield

Arduino Nano

Water Level Sensor

Jumper Wires

Circuit Connections


Water Sensor PinArduino Nano

+ - 5V

- - GND

S - A0

. Working Principle

Screenshot 2026-09-18 104215.png


The water sensor has conductive tracks that detect water.

When the sensor is dry, the sensor produces a low analog value. When water comes into contact with the sensor, its electrical conductivity changes and the analog reading increases.

The Arduino Nano reads this value through analog pin A0.

The program compares the sensor reading with a predefined threshold:

  1. Reading below the threshold → LED OFF
  2. Reading above the threshold → LED ON

The sensor reading can also be viewed on the Serial Monitor.

Sensor Reading

int waterValue = analogRead(WATER_SENSOR);

This reads the analog value from the water sensor through pin A0. The Arduino Nano gives a value between 0 and 1023.

Threshold

if (waterValue > 300)

The value 300 is used as the detection threshold. This value can be changed depending on the sensor and the actual readings.

LED Control

digitalWrite(LED, HIGH);

The built-in LED turns ON when water is detected above the threshold.

digitalWrite(LED, LOW);

The LED turns OFF when the reading is below the threshold.

Downloads

. Conclusion

WhatsApp Image 2026-09-18 at 10.20.43 AM.jpeg


The Water Level Detection project demonstrates how an Arduino Nano can read an analog water sensor and control an output based on the sensor value. It is a simple project that provides a foundation for more advanced systems such as automatic water tank controllers and water overflow alarms.