Water Level Sensor

Principle

The water level sensor converts real-time water level changes into corresponding electrical signals. Based on the principle that the voltage generated by a submerged conductor varies with depth, the sensor transmits the detected water level as a voltage signal to a controller. The controller processes and visualizes the data accordingly.

Specifications

Item

Description

Name

Water Level Sensor

Code

B0020016

Voltage

5V-DC

Data Type

Analog Signal

Data Range

0~1023

Ports

Grove

Dimensions

80 × 24 mm

Usage

Side View

Front View

Side View

Water Level Sensor Connection Diagram

The water level sensor can be connected to the P0, P1, or P2 ports of the micro: bit Intelligent Hub. In the programming environment, you can read the analog values from the water level sensor. The sensor behaves as follows: the higher the water level, the higher the detected value; conversely, the lower the water level, the lower the detected value.

Note: Avoid exposing the components to water to prevent damage to the sensor.

Modular Coding

In the MakeCode programming environment, by adding the Microbit extension, you can program the system to read the water level sensor signal from the P0 port and visualize the data on the micro: bit’s LED display.