Raindrops Sensor Module

아두위키 : Arduwiki

The sensor utilizes the decrease in resistance as the area in contact with water increases, similar to the principle of a water level sensor (DM446).

Specifications

  • Operating Voltage [V]: 3.3 ~ 5
  • Output: Digital, Analog
  • Sensitivity adjustment possible with a variable resistor

Example Hardware

  • Arduino board
  • Jumper cables
  • Rainwater detection sensor

Connections

When connecting the sensor part to the module part, there is no polarity, so you can connect them arbitrarily.

Arduino Raindrops Sensor Module
5V VCC
GND GND
D7 DO
A0 AO
connect connect
connect connect

Example Code

Example code that outputs digital and analog values of the rainwater detection sensor to the serial monitor.

#define DO 7
#define AO A0

void setup(){
  pinMode(DO, INPUT);
  Serial.begin(9600);
  Serial.println("Start");
}

void loop(){
  Serial.print("AO : ");
  Serial.print("\t");
  Serial.print(analogRead(AO));
  Serial.print("\t");
  Serial.print("DO : ");
  Serial.println(digitalRead(DO));
  delay(100);
}

Execution Result

  • When no water is detected by the sensor
  • When water is detected by the sensor