Email us

Este artículo está en inglés. Ver el sitio en español

Cet article est en anglais. Voir le site en français

Dieser Artikel ist auf Englisch. Website auf Deutsch ansehen

Este artigo está em inglês. Ver o site em português

ESP32 on a balcony: enclosure and cold weather setup

Yes. A balcony at -25 to +35 °C sits well inside the -40 to +85 °C rating ESP32 datasheets carry. Seal the board in a small stainless box, gland both cables, hang the sensor outside in a shaded screen, and dry the air before closing: air sealed at 20 °C and 60 % RH holds about 52 mg of water, and roughly 49 mg of it falls out as frost on the first -25 °C night.

NEMA4 Enclosure engineering team · Published November 4, 2026 · 8 min read

Short answer: yes, and the cold is the least of it. An ESP32 is graded from -40 to +85 °C, so a balcony that swings from -25 °C on a winter night to +35 °C in summer sits inside the rating with 15 K to spare. The two things that kill these builds are water you seal in and a cable crushed under the window.

Seal the board in a small stainless box, hang the sensor outside in a shaded screen, pass both cables through glands, and dry the air before the lid goes on. Air closed into a 10 x 8 x 4 in box at 20 °C and 60 % RH holds about 52 mg of water. Roughly 49 mg of it falls out as frost on the first -25 °C night unless you give it a path out. The sections below size the box, the glands and the desiccant, then list the checks that prove the build.

What the cold does to the board

Espressif grades the ESP32 chip for -40 to +85 °C, and some industrial module datasheets extend the finished part to -40 to +105 °C. Either grade clears a -25 °C night with 15 K of margin and a +35 °C summer with 50 K. Cold does not stop the silicon.

The box is not a heater, so plan on the board seeing the outdoor low. Heat leaves through the wall at k = 3.7 W/m²K for stainless, and this box has about 0.19 m² of wall. So 1 W of board heat lifts the interior just 1.4 °C above the street air.

An ESP32 pulls transmit bursts of 200-400 mA at 3.3 V — 0.7-1.3 W — and idles far below that. Overnight the box tracks the balcony within a couple of degrees. At a 2 W board load the lift is 2.8 °C, still nowhere near changing the story. The wall heat path is worked through in sealed enclosure conductive cooling through the wall, the hot season gets its own build in ESP32 in a sealed IP65 box in a hot attic, and what it takes to hold a sealed enclosure at 25 °C with a 75 W cooler covers the big loads.

Lithium batteries bring their own cold rule: cells take no charge below 0 °C, because metallic lithium plates onto the anode and stays there. Discharge to about -20 °C still works, at reduced capacity. The 5 V USB supply lives indoors at 20 °C and never sees either limit, so only the cord crosses the weather.

What you need

  • A 10 x 8 x 4 in 304 stainless wall-mount box, inside 9.91 x 7.91 x 3.91 in — room for the board, the desiccant and two clean cable drops. An 8 x 6 x 4 in box does it when only the board goes in.
  • The rating facts before anything else: the box is manufacturer-rated NEMA 4X / IP66, it is not UL listed, and the finished assembly keeps that rating only while every hole, gland and plug in it does too.
  • Two cable glands with clamping ranges covering the cable ODs; 4-5 mm covers a 4-core 22 AWG sensor cable and most USB cords. One rated plug for every spare hole.
  • A 5 g pack of silica gel, factory-dry or freshly regenerated.
  • An IP66-rated membrane breather, when the box lives through all four seasons.
  • A Stevenson screen or louvered radiation shield for the sensor, with 2 m of 4-core cable.
  • A crush-safe crossing for the 5 V cord: a clip or channel holding a gap of at least the cord's own 4 mm OD, or a flat ribbon cable.

The build, step by step

  1. Pick the grade for the air around the box. 304 stainless handles an inland balcony; the common corrosion rule of thumb moves you to 316L within about 1 km of breaking surf. Both come in the same sizes, so the upgrade is one line on the order.
  2. Keep the sensor out and the board in. Hang the sensor in its screen on the shaded side, at least 0.5 m from the box: a sunlit wall runs 10-20 K above air temperature by rule of thumb, and the board inside sits about 1.4 °C warm. Both errors dwarf the sensor's own accuracy, ±0.5 °C for a DHT22-class part and ±0.2 °C for an SHT31-class one. The screen geometry is laid out in weather station enclosure design for exposed sensors.
  3. Keep the sensor run short. The I2C bus budget is 400 pF, an ordinary cable runs 50-100 pF per meter on its datasheet, and 4.7 kΩ pull-ups at the sensor end hold the edges clean; 2 m is comfortable and about 5 m of good cable is the ceiling at 100 kHz.
  4. Fit the glands low. Order the two bottom-wall holes as cutouts or drill and deburr them yourself; the cutouts and glands guide covers hole sizing, and cable gland clamping ranges covers matching the seal to the jacket. The seal happens where the clamp grips, so a gland that clamps nothing leaks. Plug every spare hole.
  5. Dry the air and close the box. Drop in the 5 g desiccant, wipe the gasket face, and tighten the lid screws evenly. Pull the supply's plug before any wire touches a terminal.
  6. Cross the window without crushing. The gap must hold the cord's full OD — about 4 mm for a USB cord, 5 mm for the sensor cable — with a clip so it cannot migrate into the moving seal. Where the gap is tight, a flat ribbon only flattens; it cannot be cut. Cycle the window ten times and re-check the jacket.
  7. Check the radio from where you will read it. A closed stainless box is a Faraday cage; if the RSSI lands below about -75 dBm, move the antenna out through a bulkhead connector whose O-ring keeps the seal.

The water you seal in: a 10 x 8 x 4 in box from +20 to -25 °C

The inputs, and where each comes from:

  • Inside size 9.91 x 7.91 x 3.91 in — the CAD of the 10 x 8 x 4 in box chosen above.
  • Sealing-day air of 20 °C at 60 % RH, a typical heated build room; read your own hygrometer before the lid goes on and the same arithmetic applies.
  • Design low of -25 °C, the winter night this case must survive.
  • Saturation vapor density of 17.3 g/m³ at 20 °C and about 0.6 g/m³ at -25 °C, from standard psychrometric tables.

The rule in words: water sealed into a box stays in it. Air holds vapor only up to saturation for its temperature. Everything above that falls out onto the coldest surfaces in the box, which here are the stainless wall and the board.

The arithmetic:

  • V = 9.91 x 7.91 x 3.91 = 306 in³, and 306 x 16.39 mL = 5.02 L of trapped air.
  • Water sealed in at closing: 17.3 x 0.60 x 0.00502 = 52 mg.
  • Water the air still holds at -25 °C: 0.6 x 0.00502 = 3 mg.
  • Falls out as condensation: 52 - 3 = 49 mg, which is 94 % of what went in.

Two results follow. That trapped air's dew point sits at about 12 °C, so the first autumn evening below 12 °C starts the condensing, months before the deep cold arrives. And the 49 mg never leaves: a sealed box re-melts it every warm afternoon and freezes it back onto the wall every night.

The decision: a balcony built for -25 °C crosses its dew point from mid-autumn onward, so the water gets out one of two ways. Desiccant first — silica gel binds about 25 % of its own weight at room humidity, the standard adsorption-handbook figure, so the 5 g pack holds 1.25 g, 24 times the 52 mg load. Breather second — a membrane vent that carries its own IP66 rating lets humid air leave as the pressure cycles. Fit both on a four-season build, because the weakest part sets the assembly's rating: a plain drilled hole opts out of IP66 entirely.

Checks when the box is closed

  • Interior humidity falls under 40 % RH within a day and stays there; a climb through a rainy week means a gland, a plug or the gasket is leaking.
  • A gentle hose over the closed box for a minute, then straight inside to look for damp at the glands, the hinge and the plug holes.
  • Sensor reading within ±0.5 °C of a reference over an hour of steady weather; a constant offset is placement, not calibration.
  • Cord jacket still round after ten window cycles, flattened under 10 %, with no white crease lines.
  • Wi-Fi above about -70 dBm is comfortable; below -75 dBm, fit the bulkhead antenna before winter tests it for you.

Mistakes that cost the rating

  • A plain drilled hole as a vent. The IPX6 test puts a 12.5 mm nozzle at 100 L/min against the box, and an open hole withdraws it from that test; the IP rating chart decodes the digits, and a membrane breather keeps them.
  • The sensor inside the sealed box. It then reads the box's dry, board-warmed air — about +1.4 °C high on a 1 W board — and an interior hygrometer reads the desiccant, not the balcony. What a humidity sensor reads inside a sealed enclosure measures the difference.
  • Screws through the gasket face. Mount on the feet and the back holes, and seal any wall fixing that pierces the box the way mounting screws through an outdoor enclosure without leaks shows.
  • Tape or a bag standing in for the enclosure. Both hold a film of water against the board and carry no rating at all.
  • Spare holes left open over winter. Every unused opening gets a gland or a rated plug before the lid closes.

What to order for each balcony

Balcony Box and grade Water plan Crossing the window
Inland, mains power indoors 10 x 8 x 4 in, 304 stainless 5 g desiccant + IP66 membrane breather USB cord through a clipped 4 mm gap
Sea air, salt deposits 10 x 8 x 4 in, 316L stainless Same desiccant and breather Same
Board only, small wall 8 x 6 x 4 in, 304 stainless 5 g desiccant; breather when it runs year-round Flat ribbon under the seal
Room for a logger later 12 x 10 x 6 in, 304 stainless Same as inland Same as inland

For the case in this article — -25 to +35 °C, mains indoors, sensor outside in a screen — the order is four lines: the 10 x 8 x 4 in 304 box with two 4-5 mm gland cutouts in the bottom wall, the 5 g desiccant, the IP66 membrane breather, and the bulkhead antenna when the router sits two walls away. Everything else is cable discipline. The box and its cutouts are delivered in 10 business days, counted from your approval of the drawing for the custom holes.

Enclosures in this article

EnclosureMaterialOutside H x W x D / displayRating
10 × 8 × 4 in304 stainless10 x 8 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
8 × 6 × 4 in304 stainless8 x 6 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
10 × 8 × 4 in316L stainless10 x 8 x 4 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Will Wi-Fi still reach the router from inside a stainless box?

Treat the closed box as a Faraday cage: the same gasketed seams that stop water cut a 2.4 GHz link by 30-60 dB, a thousand-fold power loss or worse. Log the RSSI first; below about -75 dBm, move the antenna out through a bulkhead SMA whose O-ring keeps the IP66 seal.

Can the box run on battery and a small solar panel through winter?

Arithmetic first: a 2,000 mAh cell at a 5 mA average lasts 400 hours, about 17 days, so deep-sleep between readings decides the winter. Chemistry second: lithium cells take no charge below 0 °C, so the charge circuit must block cold charging; discharge to about -20 °C still works at reduced capacity.

Is 304 stainless enough if the balcony faces the sea?

Move to 316L within about 1 km of breaking surf. Chloride stress-corrosion cracking waits for about 60 °C, which a balcony wall never reaches, so the real failure is pitting and crevice attack under salt deposits. 304 can pit even at room temperature where salt sits, while 316L's molybdenum raises its pitting resistance.

How often does the desiccant need refreshing?

Let the logged humidity decide: under 40 % RH inside is healthy, and a steady climb means the crystals are full or a seal is leaking. When they are spent, bake the silica gel at about 120 °C for two hours to drive the water back off, then seal the pack while it is still warm.

Checklist before you order

Specify it once, built to your drawing

  • Environment and NEMA type: Type 1, Type 3R, Type 4, Type 4X, Type 6P, Type 12, Type 13 (manufacturer ratings, not UL listed)
  • Material: 304 stainless steel, 316L stainless steel, Powder-coated carbon steel, Aluminum, Polycarbonate, Fiberglass (FRP)
  • Size: inside or outside height, width and depth, with the depth your deepest component needs
  • Cutouts, glands and windows, dimensioned from one datum on each face
  • Mounting and access: wall, pole or stand, hinge side, mounting panel
  • Quantity: from one piece

Delivered in 10 business days, anywhere in the world. Counted from your order; for custom work, from your approval of the drawing.

Build it from 10 × 8 × 4 inRequest a custom quote

Check the heat load in the calculator · Outdoor enclosures: sizes for this job

Keep reading

Related engineering answers

All articles

Buying guides

The guides behind this answer

All guides