← Back to Basic Projects
Basic . Project #15

🌊 Water Level Indicator

Build a simple water depth sensor using three probes and multi-level LED indicators.

πŸ“‹ Overview

Water conducts electricity. By placing wires at different heights in a container, we can detect which ones are submerged as they complete a circuit to a common 5V probe.

What you'll learn: Digital logic for sensing, simple conductivity probes, and multi-threshold display.

Estimated time: 40-50 minutes. Difficulty: ⭐⭐ Easy.

🧩 Components Needed

ComponentSpecificationQtyNotes
Arduino Uno R35V1
LEDs (R, Y, G)3 levels3
Resistors220Ohm3
Resistors10kOhm3Pull-down for probes
Stiff Wire ProbesCopper or Steel41 common, 3 level probes

πŸ“– Step-by-Step Tutorial

1

Prepare Probes

Cut 4 wires of different lengths. One long wire (Common) goes to the bottom. Others (Low, Med, High) stop at different levels.
2

Wire Pull-downs

Connect each level probe (Pin 2, 3, 4) to GND via 10kOhm resistors.
3

Connect Common

Connect the longest wire directly to 5V.
4

Test in Water

Slowly fill a cup. LEDs will light up one by one as the water hits each wire.
πŸ’‘
For real-world use, use stainless steel probes to prevent corrosion. For a breadboard project, simple jumper wires work fine for a quick demo.

πŸ’» Arduino Code

water_level.ino
INO
// Water Level Indicator : Volt X
const int L1=2, L2=3, L3=4; // Probes
const int G=8, Y=9, R=10;   // LEDs

void setup() {
  pinMode(L1, INPUT); pinMode(L2, INPUT); pinMode(L3, INPUT);
  pinMode(G, OUTPUT); pinMode(Y, OUTPUT); pinMode(R, OUTPUT);
}

void loop() {
  if(digitalRead(L3)) digitalWrite(R, HIGH); else digitalWrite(R, LOW);
  if(digitalRead(L2)) digitalWrite(Y, HIGH); else digitalWrite(Y, LOW);
  if(digitalRead(L1)) digitalWrite(G, HIGH); else digitalWrite(G, LOW);
  delay(200);
}

⭐Reviews & Ratings

β€”0 reviews
5β˜…
0
4β˜…
0
3β˜…
0
2β˜…
0
1β˜…
0
⏳

Loading reviews…

Water Level Indicator β€” Arduino Tutorial | Volt X