Projects / Rain alert for the clothesline

Rain alert for the clothesline

Beginner40 minGuided buildReviewed

Build it step by step

0 of 5 done
  1. NANORAIN

    Place the plate

    Fix the sensing plate tilted at about 30° outside, so drops land on it and run off.

  2. NANOMULTI

    Run the cable

    Carry the two plate wires indoors on the shielded cable to the control module.

  3. NANO

    Wire the module

    VCC to D4, GND to GND, AO to A0, DO to D5.

  4. NANO14.7 mA

    Add the alert

    Buzzer on D8, blue LED with 220 Ω on D9.

  5. NANORAIN14.7 mA

    Set the trimmer

    Upload, sprinkle a few drops on the plate and turn the module trimmer until its DO LED lights with a few drops.

In short

How do you build a rain alert for the clothesline?

A rain sensor plate on the balcony beeps a buzzer indoors at the first drops, so the washing comes in on time. You need Arduino Nano, Rain drop sensor module, Active buzzer 5 V, LED 5 mm blue, Resistor 220 Ω, Multi-core shielded cable 4-core, 5 V 2 A USB adapter and USB A to micro-USB cable (data). It takes 5 steps and about 40 minutes.

Level
Beginner
Time
About 40 min
Parts
8

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Rain boardControl module (two short wires)Sensing plate outside, module indoors
Module VCC / GNDNano D4 / GNDPower only while reading, so the plate corrodes slower
Module AONano A0Wetness (lower = wetter)
Module DONano D5LOW when wet past the trimmer setting
Nano D8Buzzer + (− to GND)Alert
Nano D9220 Ω, blue LED, GNDRain light

Code

Arduino IDE, board "Arduino Nano" (choose "ATmega328P (Old Bootloader)" for most clones). No extra libraries.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

const int POWER = 4, WET_PIN = 5, LEVEL = A0, BUZZER = 8, LED = 9;

void setup() {
  pinMode(POWER, OUTPUT); pinMode(WET_PIN, INPUT);
  pinMode(BUZZER, OUTPUT); pinMode(LED, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  digitalWrite(POWER, HIGH); delay(20);       // power the plate only while reading
  int level = analogRead(LEVEL);
  bool wet = digitalRead(WET_PIN) == LOW;
  digitalWrite(POWER, LOW);
  Serial.print("level="); Serial.print(level); Serial.println(wet ? " RAIN" : "");
  digitalWrite(LED, wet);
  if (wet) {
    for (int i = 0; i < 3; i++) { digitalWrite(BUZZER, HIGH); delay(150); digitalWrite(BUZZER, LOW); delay(150); }
  }
  delay(2000);
}

What the serial monitor should show

Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.

level=205 RAIN
level=206 RAIN
level=205 RAIN

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Dry platelevel 900 to 1023, no beeps
A few dropslevel falls below about 700, blue LED and three beeps every 2 s
Plate wiped dryAlerts stop within a few seconds

If it does not work

Always says rain

Turn the module trimmer the other way, or dry the plate.

Never says rain

Check the plate wires reach the module and DO goes to D5.

The plate turns green over weeks

That is corrosion. Powering it only while reading (as here) slows it. Replace the plate when it gets bad.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the rain alert for the clothesline?

Arduino Nano, Rain drop sensor module, Active buzzer 5 V, LED 5 mm blue, Resistor 220 Ω, Multi-core shielded cable 4-core, 5 V 2 A USB adapter and USB A to micro-USB cable (data). Multi-core shielded cable 4-core: Up to 5 m from balcony to indoors.

How long does the rain alert for the clothesline take to build?

About 40 minutes for a beginner maker, in 5 steps.

How do I know the rain alert for the clothesline works?

Dry plate: level 900 to 1023, no beeps. A few drops: level falls below about 700, blue LED and three beeps every 2 s. Plate wiped dry: Alerts stop within a few seconds.

Always says rain: what should I check?

Turn the module trimmer the other way, or dry the plate.

Never says rain: what should I check?

Check the plate wires reach the module and DO goes to D5.

The plate turns green over weeks: what should I check?

That is corrosion. Powering it only while reading (as here) slows it. Replace the plate when it gets bad.