Interface Water Sensor With Arduino

About Water Sensor:

A water sensor is a device or a circuit which is designed to detect the presence of water or to find water level. Water sensors can be of different types like conductive, optical, vibrating, ultrasonic, float, etc. Here we will be discussing a conductive or a resistive type water sensor. The circuit of the water sensor is designed in such a way that when the sensor comes in contact with the water the conductivity of the sensor increases and vice-versa and then we can convert the conductivity of water sensor into digital or analog data depending upon the application.

Pinout or Pin Diagram of Resistive or Conductive Type Water Sensor

Features of Conductive or Resistive Type Water Sensor

  • Operating voltage: 3-5v
  • current consumption: 20mA
  • Operating temperature: 10-50 degree Celcius 
  • Operating humidity: 10-90%

Components Needed for This Project

  • Arduino UNO
  • Water sensor
  • Jumper wires 

Pin Connection of Water Sensor

  • Pin VCC: 5v
  • Pin GND: GND
  • Pin Data: A0

Circuit Diagram of Water Sensor

Arduino IDE Code

const int waterSensor=A0;
void setup() {
  Serial.begin(9600);

}

void loop() {
  int waterSensorData=digitalRead(waterSensor);
  Serial.print("SENSOR DATA:");
  Serial.println(waterSensorData);
  delay(100);
}

Leave a Reply

Your email address will not be published. Required fields are marked *