science tinker

Water level sensor

A board with parallel metal tracks: the deeper it stands in water, the higher the voltage on S.

Sensors · Elements inside: CuSnSiOC

Function: what a Water level sensor does in a circuit

A board with parallel metal tracks: the deeper it stands in water, the higher the voltage on S.

  • Senses how deep it stands in water
  • Detects rain drops and leaks
  • Gives an analog level for tank and plant projects

Water level sensor key facts

Supply3.3 V to 5 V
Outputan analog voltage that rises with water depth
Sensing areaabout 40 mm tall
Pins−, +, S

Pinout

The legs from left to right, as the part is drawn in the simulator:

No.Name
1− (GND)
2+ (VCC)
3S (signal)

How it works

Alternate tracks are connected to the supply and to the sensing side. Water with dissolved salts bridges the gaps between them, and the more track is under water the more current can flow. A transistor on the board turns that into a voltage on S, which you read with analogRead. It also works as a rain or leak detector: a few drops are enough to change the reading.

What it is made of

  • Tracks: Copper plated with tin CuSn
  • Transistor: Silicon Si
  • Board: Glass-fibre and epoxy circuit board SiOC

Where the materials come from: Copper from ores such as chalcopyrite (Chile, Peru); tin from cassiterite (Indonesia, China); silicon from quartz sand.

The chemistry

Pure water conducts very poorly; dissolved ions such as Na⁺ and Cl⁻ carry the current. With current flowing all the time the tracks slowly corrode by electrolysis.

Biology connection

Your kidneys keep the water level of your body steady, measuring the blood and letting more or less water out. How the kidney works →

Safety and the environment

Power it from a pin and switch it on only while reading, so the tracks last. Keep the part with the components and pins out of the water.

Did you know? Readings change with how salty the water is, so calibrate it in the water you will actually measure.

Try it in the simulator

Build and code a circuit with a Water level sensor in these practice projects:

Questions students ask

What does a Water level sensor do?

A board with parallel metal tracks: the deeper it stands in water, the higher the voltage on S. Main functions: senses how deep it stands in water; detects rain drops and leaks; gives an analog level for tank and plant projects.

How do I read a water level sensor?

Connect S to an analog pin and read it with analogRead(). Note the reading with the sensor dry and with it fully in the water, then use map() to turn readings into a level.

What are the connections of a Water level sensor?

In order: − (GND), + (VCC), S (signal).

How does a Water level sensor work?

Alternate tracks are connected to the supply and to the sensing side. Water with dissolved salts bridges the gaps between them, and the more track is under water the more current can flow. A transistor on the board turns that into a voltage on S, which you read with analogRead. It also works as a rain or leak detector: a few drops are enough to change the reading.

What is a Water level sensor made of?

Tracks: Copper plated with tin. Transistor: Silicon. Board: Glass-fibre and epoxy circuit board.

Is a Water level sensor safe? How should it be recycled?

Power it from a pin and switch it on only while reading, so the tracks last. Keep the part with the components and pins out of the water.

More sensors

Know someone who would use this?

It’s free for every learner. Send it to your class, team or club.

Updated · Free, no sign-up ·

Connected tools

The same idea from another angle, across the site.