Water Sensor

../../_images/water2.png

This is a water sensor that detects the presence of water and the water level and returns an analog value.

The range of the return value is 0-1023, a higher value means the water level is higher.

Specificationarrow-up-right

  • Voltagw: 3.3V~5V

  • Type: Analog Module

  • Interface: 3Pin PH2.0

Wiring Diagramarrow-up-right

Robotbit Shieldarrow-up-right

Connect the sensor to Robotbit Shield’s 3Pin port.

../../_images/poten_wire2.png

Connect the sensor to Robotbit’s pin and 3V pin.

../../_images/poten_wire1.png

MakeCode Coding Tutorialarrow-up-right

../../_images/mcbanner.png
../../_images/acbanner.png

This module can be used with Microbit and Meowbit.arrow-up-right

Reading the water level valuearrow-up-right

../../_images/poten_code.png

../../_images/poten_codeMeow.png

KittenBlock Coding Tutorialarrow-up-right

../../_images/kbbanner.png

Load the Robotbit extensionarrow-up-right

../../_images/addRB.png

Reading the water level valuearrow-up-right

../../_images/poten_codekb.png

Mu Editor Coding Tutorialarrow-up-right

Reading the water level valuearrow-up-right

../../_images/poten_codemu.png

Last updated