Documentation
Rain Sensor (Node)
Analog rain sensor for Arduino nodes that detects moisture via resistance between two trace points.
Overview
A rain sensor usually works the same as a soil moisture sensor in that it determines the resistance between two points. Typically a rain sensor is two traces running close but never touching on a circuit board. If moisture (rain) runs across the traces it will reduce the resistance and give you an idea of present moisture.
The rain sensor gives a reading of 0–1024. Not all sensors will have the same sensitivity, so you should do some tests by dripping different amounts of water on the sensor to simulate different rain conditions.
Configuration
{
"sensors": [
{
"type": "Rain",
"name": "Rain Detector"
}
]
}
Settings
| Property | Value | Description |
|---|---|---|
type |
Rain |
Sensor type identifier |
Returns
Integer — A value from 0 to 1024.
Calibration Samples
Below are sample readings from an actual setup. Use them as a reference to get started, but do your own tests for ideal results.
| Condition | Reading |
|---|---|
| No Rain | 1000 |
| Mist | 800 |
| Light Rain | 750 |
| Rain | 550 |
| Heavy Rain | 400 |