How does a Water Level Sensor Work and How to Interface it with
Arduino?
• Water tank overflow is a common problem that results
in water wastage, and it's surprising to note that it's not
even considered a concern in many households.
• Though there are many solutions for it like ball valves that
automatically cut the flow of water when a certain level is
reached but as an electronic engineer, a solution that
includes sensors and automation is preferred.
• We are going to interface a water level sensor
with Arduino to measure the water level and in the
process, we will let you know the details about this sensor
and its working. So without further ado, let's get right into
it.
How does a Water Level Sensor
Work?
• The working of the water level sensor is pretty
simple and easy to understand. The PCB is made out
of long conductive plates. When the water reaches a
certain level the conductivity between the two plates
changes, and by measuring the changes we can
measure the water level.
• The Gif shows the working of the water level sensor
in action. As you can see when the drop of water falls
inside the glass, the water level rises and the voltage
on the output pin also rises.
• This phenomenon is directly proportional to the
output voltage.
• This happens because the sensor portion on the PCB
is made out of 10 conducting plates, 5 of which are
power tracks, and 5 others are the sensor tracks.
Water Level Sensor – Parts
• This sensor is very simple, so it can be made
with very few parts. This sensor produces the
water level and outputs the data in an analog
format.
• The sensor module has three pins, two of
those are power pins and needs to be
connected to the 5V and ground pin of the
Arduino.
• The module has a single power LED that turns
on when power is applied to the board, other
than that we also have a transistor and a
bunch of resistors that in total makes the
water level sensor module.
Circuit Diagram for
Water Level Sensor
Module
• The Schematic Diagram of the
Water Level Sensor is shown
below and as you can see it's
pretty simple to understand.
Arduino Water Level
Sensor Circuit –
Connection Diagram
• Now that we completely
understand how the
water level sensor works,
we can connect all the
required wires to the
Arduino UNO board, and
in this section of the
article, we will discuss
just that!