Print Friendly, PDF & Email

Rainfall Sensor


Rainfall sensor is a very compact sensor which is used to detect droplets. This module allows us to measure moisture with the help of analog output pins and it provides a digital output when a threshold of moisture is exceeded. The module is based on the LM393 op amp.

It includes the electronics module and a printed circuit board that “collects” the rain drops.  As rain drops are collected on the circuit board, they create paths of parallel resistance that are measured via the op amp.

The lower the resistance (or the more water), the lower the voltage output. Conversely, the less water, the greater the output voltage on the analog pin.

Arduino Rain Sensor Module Pin Outs


Rainfall sensors are most commonly used in Irrigation field, Wiper control, Industrial area, Rain water harvesting etc.


Project for Reference:


Code to get analog value

You can analyse output in serial monitor.