Back to Blog
How-to Guides 2026-11-20 Kunkune 0 views

Rain Sensor Arduino Wiring and Setup Guide

Rain Sensor Arduino Wiring and Setup Guide

Learn how to connect and configure the Rain Water Snow Detection Sensor Module with Arduino for weather station, irrigation, or automation projects.

What the Rain Sensor Module Detects and How

The Rain Water Snow Detection Sensor Module uses exposed copper traces on a PCB to detect water droplets. When rain or melted snow bridges those traces, conductivity increases, and the on-board LM393 comparator switches its digital output from HIGH to LOW. This gives you a clean on/off signal that your Arduino can read instantly.

Because the sensing pad is separate from the control board (connected by a header), you can mount the pad outdoors while keeping the electronics sheltered. That separation alone solves a common problem in weather station builds where moisture creeps into connectors.

Module Specifications That Shape Your Setup

Wiring the Module to Your Arduino

Connect the control board to your Arduino using the following pins. The exact pin numbers depend on your board model, but the logic is the same.

  1. Power (VCC): Connect to Arduino 5V or 3.3V. The module accepts 3.3V–5V, so either works.
  2. Ground (GND): Connect to any Arduino ground pin.
  3. Digital Output (DO): Connect to a digital input pin on your Arduino. This pin will read LOW when water is detected.
  4. Analogue Output (AO): Connect to an analogue input pin if you want a proportional wetness reading. Leave unconnected if you only need a rain/no-rain signal.

Choosing Between Digital and Analogue Output

For most weather station rain triggers — closing a greenhouse vent, activating a wiper, or sending an alert — the digital output is all you need. It gives a clean on/off state that your sketch can act on with a simple if/else.

If you want to log rainfall intensity or detect drizzle versus a downpour, use the analogue output. The voltage increases with wetness, so you can set multiple thresholds in your code. Keep in mind that the analogue value is relative; calibrating it to a specific mm/h rate would require a known reference you supply yourself.

Adjusting Sensitivity with the Potentiometer

The onboard potentiometer lets you set how much water triggers the digital output. Turn it clockwise to require more water (less sensitive) or counterclockwise to trigger on smaller droplets. This is useful for ignoring light mist or condensation while still catching actual rain.

A practical approach: power the module, drip water onto the sensing pad, and adjust the pot until the digital output switches at the wetness level you want. No code changes needed.

What the Supplied Information Does Not Cover

The catalog does not include sample Arduino sketches, specific pin assignments for every board variant, or instructions for mounting the sensing pad outdoors. You will need to write your own read routine for the digital or analogue pin and provide your own weatherproof enclosure for the pad if it will be exposed to the elements long-term.

The module detects conductive water — it will not distinguish between rain, tap water, or salt spray. In coastal or polluted environments, false readings from condensation or residue are possible and may require periodic cleaning of the copper traces.

Related Articles

Customer Service
Home
Products
Cart
Profile