Shape the airflow path instead of closing it: put the inlet and outlet facing down, route the air through a louvred or tortuous run, and you keep rain out at the IP44 to IP55 level while the air your gas and dust sensors need keeps flowing. A humidity-driven closing mechanism solves the wrong problem. Rain does not climb; it falls, and a downward opening with the right clearances defeats it without a single moving part.
The choice is not sealed versus open. It is which of four vent styles fits your mounting case, and the answer changes with how the box sits and how hard the rain comes.
Four ways to ventilate in the rain
| Approach | Rain protection it can hold | Airflow it passes | Moving parts | Where it wins |
|---|---|---|---|---|
| Downward-facing inlet and outlet | IPX4 splashing | High, near free-flow | None | Device placed in any position, sensor must breathe |
| Louvre stack or Stevenson-screen path | IPX4, often IPX5 jets | Medium, halved or more | None | Sideways and wind-driven rain, sun shielding |
| Tortuous labyrinth / drip channel | IPX4 to IPX5 | Medium | None | Compact boxes, falling or tilted units |
| Humidity- or rain-triggered damper | Sealed when closed | Zero when closed, full when open | Yes, plus a sensor | Only where spray or immersion defeats geometry |
IEC 60529 defines what those codes mean. The second digit 4 is splashing water oscillated against the enclosure from every direction; digit 5 is a straight jet from a 6.3 mm nozzle at 12.5 L/min. A downward mouth with a turn in the path passes IPX4 comfortably. A louvre stack with two or three baffles and a drip edge holds through IPX5 jets in most orientations. Digit 6, powerful jets at 100 L/min from a 12.5 mm nozzle, is a sealed-box rating; a ventilated sensor housing does not go there, and neither does a rating built on immersion.
Why the closing lid is the last resort
Your original idea, a moisture-sensitive gel or hair element driving the vents shut, fails on physics before you machine a part. Hygroscopic elements respond to relative humidity, and outdoor air ahead of a rain front is already above 90% RH. The damper closes before the first drop lands, and it stays closed through fog, morning dew and humid nights, cutting off the airflow that is the whole reason the box is ventilated. Documented humidity- and thermal-driven soft actuators show response times from about 200 ms to 2 s for humidity drive and 1 s to 20 min for thermal drive, and those figures come from laboratory films, not a gasketed damper working outdoors for a season.
If you close the vents on a signal, close them on an electronic rain or wetness sensor you can test, and suspend the gas and dust measurement for the closure period, as your suspension idea already allows. That is a legitimate fallback. It costs you measurement uptime and it adds a failure mode: a damper that sticks shut silences the sensor silently. Meteorologists solved this problem a century ago without a single actuator.
The Stevenson screen: proven geometry you can copy
The Stevenson screen, the white louvred shelter holding weather instruments, protects precipitation-sensitive instruments while air moves through it. Its working principles are three, and all three transfer to a sensor enclosure:
- Louvres angled downward on the outside. Each slat sheds water down and outward, so a drop entering must travel an upward path against gravity.
- Offset slats with a gap between layers. The air makes a zigzag; water in a zigzag hits a surface and runs down it, away from the instrument.
- A solid roof overhanging the louvres. Vertical rain never reaches the mouth of the path at all.
A single-walled louvre bank gives you roughly one turn in the path. Two banks, screen style, give you three or four. Each turn removes most of the entrained water at the modest velocities a passive vent runs at, and it also cuts direct sun by a wide margin, which matters as much as rain for measurement drift.
Sizing the opening: a worked example
Take a dust and gas sensor needing a through-flow of 20 L/min, a small electronics load of 5 W, and a stainless wall of thermal conductivity 3.7 W/m²K on a 20 x 16 x 8 in [500 x 400 x 200 mm] class box. The radiating surface is about 0.5 m² of projected area counting both faces; the wall passes heat at 3.7 W/m²K, so a 5 W load needs a rise of 5 / (3.7 x 0.5) = 2.7 K above ambient. Call it 5 K with margin and cable losses.
Buoyancy through two openings, one low and one high, follows the stack effect. With a 1 m vertical separation, the stack pressure is p = rho x g x H x (dT/T) = 1.2 kg/m³ x 9.81 m/s² x 1 m x (5/298) = 0.20 Pa. Two 50 mm [2 in] round openings give 0.00196 m² each. With a discharge coefficient of 0.6, the velocity is 0.6 x sqrt(2 x 0.20 / 1.2) = 0.35 m/s, so the flow is 2 x 0.00196 x 0.35 = 0.0014 m³/s, about 82 L/min. That is four times the sensor's 20 L/min, so the downward mouth on each end is generous and leaves room for the louvre turns, which cost roughly half the free area each.
Check the rain side of the same number. Large raindrops fall at about 9 m/s; the vent air leaves the outlet at 0.35 m/s. Water cannot be pushed upward by your own airflow, so the only entry routes are wind-driven spray and splash from below. That is why the mouth points down, gets a drip edge, and keeps 1.2-2 in [30-50 mm] of clearance to the nearest upward splash path.
Where each approach wins
Downward-facing ports win when the unit can be set down anywhere. For a device dropped into rock cracks or placed on the ground, geometry is the only protection that survives any orientation you allow. Two rules make it work: keep the port bore 20-30 mm [0.8-1.2 in] so a raindrop cannot bridge across the mouth in wind gusts, and put the sensor inlet above the internal drip line, behind the first turn of the path.
Louvres and Stevenson-screen geometry win in wind-driven rain. Oscillated spray in the IPX4 test arrives horizontally, and a plain downward mouth still passes it, but driving rain at 10 m/s wind carries drops sideways into any opening short of a labyrinth. Two louvre banks or a three-bend labyrinth stop that without measurable airflow loss at passive velocities.
The closing damper wins only when water arrives against gravity or in volume. A unit that can end up face-up in a puddle, submerged to 2 in, or hosed down, defeats every passive path. There, seal the box, move to a membrane vent for pressure equalization, and accept that a truly air-breathing sensor needs its sample line routed to a protected head rather than a wall opening.
The decision, by mounting case
| Mounting case | Build this | Resulting protection |
|---|---|---|
| Placed on ground or in crevices, any orientation allowed | Downward inlet and outlet, 50 mm [2 in] bore, 30-50 mm clearance, drip edge | IPX4 splashing, full sensor airflow |
| Fixed post or wall mount, driving rain | Stevenson-screen double louvre bank on the sides, solid overhanging roof | IPX4, typically IPX5 jets |
| Compact unit, may fall or be tilted | Internal labyrinth, three 90-degree bends, drain at the lowest point | IPX4 to IPX5 |
| May lie face-up in standing water or be washed down | Sealed box, membrane vent, sample drawn through a downward-facing protected tube | IP66-class sealed body, airflow through the tube only |
What to put on the order
For the fixed-mount and ground-placement cases, a 316L stainless box near salt air or 304 inland, custom-cut with two 50 mm [2 in] downward-facing openings plus your louvre or baffle drawing, fits the pattern. Our stainless wall-mount enclosures are rated NEMA 4X / IP66 by the manufacturer; not UL listed, and a vent opening of this kind changes the achieved rating of the finished assembly, so the cutout drawing and the baffle detail travel with the order. If choosing a stock size is your next step, the enclosure selector sorts by environment and opening layout, and the custom builder takes your exact cutouts.
Pair the geometry with the airflow math: the guide to sizing inlet and outlet vents for a naturally ventilated enclosure carries the stack-effect sizing in full, and the gas sensor venting guide covers the case where the sensor must breathe but the electronics must not. For the rain-rating background, whether IP55 is enough outdoors explains what each jet and spray test actually does to a box, and the outdoor humidity sensor membrane versus shield comparison is the same trade in miniature for a single sensor.
One safety note belongs here: before opening any enclosure that has been live outdoors, isolate the supply and verify the absence of voltage.
The decision in one line: for rain, geometry beats machinery. Point the openings down, put a turn in the path, drain the lowest point, and reserve the closing damper for the one case water can defeat, which is water arriving in volume against gravity.
Catalog dimensions to compare
Compare these catalog dimensions with your component layout. Open each enclosure for its rating, material and usable space, then check those specifications against your application.
| Enclosure | Material | Outside H x W x D / display | Rating |
|---|---|---|---|
| 20 × 16 × 8 in | 304 stainless | 20 x 16 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 16 × 12 × 8 in | 304 stainless | 16 x 12 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 24 × 20 × 8 in | 304 stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 6 in | 304 stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Does a downward-facing vent opening really keep rain out?
Yes, when the opening faces down and water has to travel upward to reach the sensor. Rain falls at roughly 5-9 m/s, so with a 30-50 mm clearance below the opening and no wind-driven splash path, drops fall past the box. The weak points are wind pushing spray sideways into the mouth and condensation running along the housing, so give the air a turn after the opening and add a drip edge.
What IP rating can a ventilated sensor enclosure reach?
A well-shaped passive path comfortably meets the IPX4 splashing-water test and, with deep baffles or a louvre stack, the IPX5 jet test (6.3 mm nozzle, 12.5 L/min). Full IP66 or IPX6 needs a sealed box with a membrane vent or no ventilation at all, which is the wrong choice for a sensor that must breathe air. Ratings are manufacturer ratings; they are not UL listed.
How much airflow does a buoyancy vent actually deliver?
With a 1 m vertical separation between inlet and outlet and a 5 K inside-outside temperature difference, the stack pressure is about 0.2 Pa, which drives roughly 60-70 L/min through two 50 mm openings. A 5 W electronics load gives that 5 K rise in a small box; at 10 K the flow grows by about 40% because stack pressure scales with the temperature difference.
Should I build a humidity-triggered lid that closes the vents in rain?
Build it only after the passive path fails, and drive it from an electronic rain or humidity sensor you can test, not a passive gel or hair element. Passive humidity actuators cannot distinguish fog from rain, respond in tens of seconds to minutes, and stick closed. A mechanical damper also blocks the air your sensor needs at exactly the moment the measurement matters.
How far below the inlet should the sensor sit?
Keep 30-50 mm of vertical clearance under a downward opening and mount the gas or dust sensor inlet above the internal drip line, behind the first baffle. On a ground-mounted unit that still floods, add 25 mm drain holes in the lowest wall so water leaves as fast as it arrives, and seal the electronics compartment separately from the sensor air path.





