QB063 Water Sensor

1.Product Introduction

../../_images/Water-1.jpg

The water sensor is an instrument that can convert the water level parameters of the measured point into the corresponding electric signal in real time. Its working principle is to use the trace of its parallel wire to measure the amount of water and thus judge the water level. The analog value output by the water sensor can be directly read by the controller board, which can be used for the function of water level alarm in practical applications.

2.Parameter Specification

Parameter Value/Representation
Operating voltage 3.3~5V
Operating temperature -20°C~+80°C
Output signal Analog signal
Size 6.68cm*2.37cm
../../_images/Water-2.jpg

3.Wiring Diagram

../../_images/Water-3.png
Water Sensor UNO
VCC 5V
GND GND
S Analog Pin A0

4.Sample Code

1
2
3
4
5
6
7
8
void setup(){
  pinMode(A0, INPUT);//Set pin A0 to input mode
  Serial.begin(9600);//Set serial port baud rate 9600
}
void loop(){
  Serial.println(analogRead(A0));//The serial port shows the value of the detection of the water sensor
  delay(1000);
}

5.Test Result

After uploading the code to the controller board, open the serial port monitor of the Arduino IDE, set the baud rate to 9600, and switch to the scroll mode.

When you plug the water sensor into the water cup, you can see the following data.

../../_images/Water-4.png
../../_images/Water-5.png

6.Related Resources

7.Get One Now

B2B Business: info@acebott.com

Individual buyer: shop on aliexpress