As an Amazon Associate, Akermin earns from qualifying purchases. Product links on this page are affiliate links.
Not reliably. A humidity sensor measures water vapour in the air, and relative humidity can sit near 100 percent in fog, dew or mist with no rain falling, while a short shower on a warm afternoon may lift it only modestly. What a humidity sensor can do is warn that rain or condensation is more likely when humidity rises sharply and temperature approaches the dew point. To know that rain is actually falling, and how much, you need a rain sensor: a tipping bucket gauge, a conductive or capacitive rain detector, an optical sensor or an impact sensor.
What a humidity sensor actually measures
Most digital humidity sensors are capacitive. A thin polymer film between two electrodes absorbs water vapour from the air, and as it takes up moisture its capacitance changes. Electronics turn that into a relative humidity percentage, the amount of vapour in the air compared with the maximum the air could hold at its current temperature. Some sensors are resistive instead, but the principle is similar: they respond to vapour, not to drops.
Rain is liquid water falling from clouds that are usually hundreds or thousands of metres above the sensor. The air at ground level does not have to be saturated for that to happen. It often becomes very humid during and after rain, because drops evaporate as they fall and wet surfaces evaporate afterwards, but the link is indirect.
Many humidity sensors are also protected from direct water. In a weather station they sit inside a vented radiation shield, so rain never touches them. If a bare sensor does get wet, it usually reads 100 percent or near it until it dries, and liquid water can damage some sensor films over time.
Why humidity and rain do not match up
| Situation | Humidity reading | Raining? |
|---|---|---|
| Fog or mist | Close to 100 percent | No, or only drizzle |
| Clear night with heavy dew | 90 to 100 percent | No |
| Warm afternoon thunderstorm | Can be moderate at first, rising quickly | Yes |
| Dry air with virga, rain evaporating before it reaches the ground | Low or moderate | Not at ground level |
| Long steady rain | Usually high, 90 percent or more | Yes |
| Cold winter air | Often high | Not necessarily |
The trouble is that high humidity happens most nights in many climates, and rain does not always bring saturation at the sensor. A rule like call it rain when humidity exceeds 95 percent will fire on most foggy and dewy mornings and miss the start of many showers.
Dew point tells you more than relative humidity. When the air temperature and dew point are within a degree or so of each other, the air is saturated and fog, dew or drizzle are likely. For the calculation, see calculating dew point from temperature and humidity, and for why it matters indoors, what dew point is.
Sensors that do detect rain
| Sensor type | How it works | Measures amount? | Weak points |
|---|---|---|---|
| Tipping bucket gauge | Funnel fills a small seesaw that tips at a set volume; tips are counted | Yes | Undercounts in very heavy rain, clogs with leaves, needs levelling |
| Conductive rain detector | Water bridges a grid of traces, resistance drops | No, yes or no only | Traces corrode, dew can trigger it |
| Capacitive rain sensor | Water on a coated surface changes capacitance; often heated to dry | Roughly, as intensity | Needs power for heating |
| Optical sensor | Drops on a lens or passing a beam scatter light | Intensity, sometimes amount | Dirt on the optics |
| Impact or haptic sensor | Drops striking a surface are detected by vibration | Estimated from drop impacts | Can be confused by hail, wind or debris |
| Irrigation rain switch | Hygroscopic discs swell when wet and open a switch | No, it pauses watering | Slow to reset after rain |
For a home weather station or garden system, a tipping bucket or impact sensor gives amounts; a simple conductive or capacitive detector is enough to know whether it is raining right now.
Using a humidity sensor as a rain hint, if you must
If a humidity sensor is all you have, you can build a probability signal rather than a rain detector. A logging sensor that reports to an app, such as the Temp Stick remote sensor or a Bluetooth unit like the Govee H5074, lets you see the pattern over time.
- Log temperature and humidity every few minutes for at least a week, including some rainy days.
- Look for the signature of a shower: a sudden drop in temperature with a sharp jump in humidity over 10 to 30 minutes, often in the afternoon.
- Compare against a nearby official weather report or your own rain gauge to see how often the pattern matches real rain.
- Set your rule on rate of change, for example humidity rising several percent and temperature falling a couple of degrees within half an hour, rather than on a fixed humidity level.
- Accept the false alarms. Fronts, sea breezes and evening cooling all produce similar curves.
It works best as an early warning to check outside, not as a switch for anything important like closing a roof vent or stopping irrigation.
Keeping the humidity readings trustworthy
Outdoor humidity sensors drift faster than indoor ones because of heat, sun, pollution and condensation. To keep readings useful:
- Shield the sensor from direct sun and rain with a louvred radiation shield. Bare sensors in sunlight read too warm and too dry.
- Check calibration with a salt test. A sealed container with damp table salt holds about 75 percent relative humidity at room temperature. After several hours, the sensor should read close to that. The method is in how to calibrate a hygrometer.
- Watch for stuck readings. A sensor that sits at 99 or 100 percent for days after rain has probably got wet inside or saturated, and may need drying or replacing.
- Compare with a psychrometer if you want a reference without electronics; a wet and dry bulb pair gives humidity from basic physics.
If you need rain data for decisions, add a proper rain sensor. If you only want to know whether it is likely to rain, a weather forecast will usually beat any single sensor on a fence post.
Pick the right sensor
If you need to know that rain is falling, add a dedicated rain sensor or a tipping bucket gauge to your setup; keep the humidity sensor for what it measures well, comfort, condensation and dew point, and log both together for a week to see how loosely they are linked where you live.
Frequently Asked Questions
Why does my outdoor humidity sensor read 100 percent every morning?
Air cools overnight until it reaches its dew point, so humidity rises to near saturation and dew forms. That is normal and does not mean it rained.
Can a humidity sensor be damaged by rain?
Many sensors tolerate brief wetting, but repeated liquid water and contamination can make them drift or stick high. A radiation shield keeps rain off.
What is the cheapest way to detect rain electronically?
A simple conductive rain detector board reports wet or dry. It does not measure amount and its traces corrode outdoors over time.
Do weather stations use humidity to forecast rain?
Many home stations combine pressure trend, humidity and temperature into a simple forecast icon. These are rough guides and often less accurate than official forecasts.
Does humidity drop after rain stops?
It often stays high while surfaces are wet, then falls as the air warms and dries. In a passing shower on a warm day it may drop again within an hour or two.