Water Level Sensor Module


৳ 90.00

Water Level Sensor Module

IT is obtained by having a series of parallel wires exposed traces measured droplets/water volume in order to determine the water level.

  • Operating voltage: DC3-5V
  • Operating current: less than 20mA
  • Sensor Type: Analog
  • Detection Area: 40mmx16mm
  • Operating temperature:10°-30°
  • Humidity: 10% -90% non-condensing

Package: 1 X  Water Level Sensor Module

Diagram

Simple water level sensor with led

 

Code

int red=2;
int green=3;
int blue=4;

void setup () {
  pinMode (red,OUTPUT);
  pinMode (green,OUTPUT);
  pinMode (blue,OUTPUT);
  Serial.begin (9600);}
 
void loop() {
  // read the input on analog pin 0:
  int value = analogRead(A0);
  
  if (value > 500) {
    Serial.println("Very heavy Rain");
    digitalWrite (red,HIGH);
    digitalWrite(green,LOW);
    digitalWrite(blue,LOW);}
  else if ((value > 300) && (value <= 500)) {
    Serial.println("AVERAGE Rain");
    digitalWrite (green,HIGH);
    digitalWrite (red,LOW);
    }
  else{
    Serial.println("Dry Weather");
    digitalWrite (blue,HIGH);
    digitalWrite (red,LOW);
    digitalWrite (green,LOW);
  delay(100);
  }
  }

Based on 0 reviews

0.0 overall
0
0
0
0
0

Be the first to review “Water Level Sensor Module”

There are no reviews yet.