Short answer: build the fridge sensor as a sealed box with a breathing sensor chamber. Put the board, battery and display inside a gasketed case sealed to IP65 or better, and set the DHT11 behind an IP67-rated PTFE membrane vent, so it samples fridge air while liquid water stays out. One number drives the design: kitchen air at 21 °C and 50 % RH has a dew point of 10.2 °C, so a case at 4 °C fogs outside every time you carry it out, and every leak breathes damp air inward. Seal the electronics, vent only the sensor chamber, and pick the housing by where it lives: a polycarbonate project case on a home shelf, 304 stainless in a food plant, 316L where brine and sanitizers sit.
What a fridge cycle does to a case
A fridge holds about 4 °C (40 °F); US food-safety guidance sets that as the target for a food compartment. Your box is the coldest object in the room every time you pull it out, and the room does the rest. Air at 21 °C and 50 % RH condenses on any surface below 10.2 °C, so the shell, the display window and the label film over with water within minutes on the counter.
The cycle also pumps air through the box. Cool a sealed case from 21 °C down to fridge temperature and the air inside loses about 6 % of its absolute pressure (277 K / 294 K at constant volume), which pulls the gasket inward; warm it again and it pushes out. Every cycle drags a little kitchen air past the seal, and that air carries more water than fridge air does. Weeks of this, not a single splash, is what corrodes breadboard springs and copper.
Two placement habits help. Set the case on its feet with about 1 in [25 mm] of clearance from the fridge back wall, where the evaporator surface sits below 0 °C and frost grows onto anything close. Keep the vent off the bottom face, so no drip ever sits over the membrane. The condensation guide walks through the same dew-point mechanism for fixed panels, and the cool-chamber version lives in dew point in a cool electronics chamber.
Sealing, venting and the weakest part
IEC 60529 grades the liquid digit by jet power: IP65 takes 6.3 mm nozzles at 12.5 L/min, IP66 takes a 12.5 mm nozzle at 100 L/min, and IP67 survives 30 min under 1 m of water. For a case that sees splashes and condensate, IP65 is the working floor. A food-plant fridge that gets hosed down wants IP66, which is the rating of our stainless wall-mount boxes: manufacturer-rated NEMA 4X-type / IP66, not UL listed.
The sensor entry decides whether the rating survives. A PTFE membrane vent equalizes pressure but passes no free water: air diffuses through over tens of seconds, while drops and jets stay out under the rated conditions. That is the trade: you get equalization, not fan flow. Pick a vent the maker documents at IP67 or better on both digits; the common threaded patch size is M20 x 1.5. Fit it in a round, deburred cutout on a flat face, gasketed and tightened to its datasheet with the membrane outward, and the assembly keeps its IP66. A vent, gland or louver with a lower rating sets the whole assembly to its own number.
In US plants, NEC 110.28 puts the enclosure Type rating in charge, so a spec that calls for Type 4X wants the NEMA number on the drawing with the IP code alongside it. The vent selection details live in choosing a pressure equalization membrane vent, and the vented-sensor, sealed-box pattern is worked through for an outdoor air quality sensor enclosure.
Sealed electronics, breathing sensor
A DHT11 sealed inside the box reads box air, not fridge air. Its humidity number drifts toward whatever the desiccant and the last door opening left behind; that problem has its own article on measuring ambient air from a sealed box. Give the sensor its own room instead: DHT11 on a ledge behind the vent membrane, low on a side face, with the board, battery and display below a baffle in the sealed zone. The element is a tiny mass and follows air temperature in seconds; the case is what stays cold and takes the condensation.
Know the sensor's envelope. The DHT11 datasheet rates it 0 to 50 °C and 20 to 90 % RH. A fridge sits at the cold edge of that, and its air often runs above the 90 % ceiling, so trust the temperature channel and read humidity as an indication. Condensation on the element is what damages it; the datasheet even prints a recovery bake, 2 h at 50-60 °C below 10 % RH, for a sensor that has been wet. Shelter the element behind the vent, wipe the case dry on the counter, and you never run that bake. A small silica sachet in the electronics bay handles the moisture you carry in on battery days.
The dew-point case: a cold box meets 21 °C kitchen air at 50 % RH
The inputs, and where each comes from:
- Fridge at 4 °C (40 °F), the food-safety target for a food compartment.
- Room at 21 °C and 50 % RH, a typical conditioned kitchen; swap in your own readings.
- Magnus-Tetens constants over water, a = 17.62 and b = 243.12 °C, the pair most psychrometric calculators use.
The dew point is the temperature at which the air's actual vapor pressure equals its saturation vapor pressure. Magnus-Tetens gives it in two lines: γ = ln(RH) + aT/(b+T), then Td = bγ/(a−γ).
γ = ln(0.50) + (17.62 × 21)/(243.12 + 21) = −0.693 + 370.02/264.12 = −0.693 + 1.401 = 0.708
Td = (243.12 × 0.708)/(17.62 − 0.708) = 172.1/16.91 = 10.2 °C [50 °F]
The dew point is 10.2 °C, so the box sits 6.2 K below it, and every surface under 10.2 °C grows a film: shell, LCD window, gasket face. Give the case about 15 min on the counter to climb past the dew point before you break the seal. The room moves the number: at 21 °C and 70 % RH the dew point climbs to 15.3 °C [60 °F]; at a dry 30 % RH it falls to 2.7 °C [37 °F], below the box temperature, and the case stays dry.
The same air carries water in. Kitchen air at 21 °C and 50 % RH holds 9.1 g of water per m³; air saturated at 4 °C holds 6.4 g/m³. Every cubic metre that leaks in and cools to fridge temperature drops about 2.7 g of water inside the box.
Plastic case or stainless
Where the box lives picks the material. On a home shelf a sealed polycarbonate project case does the job: it cannot corrode, a clear lid lets you read the LCD without opening anything, and a gasketed lid holds IP65. In a food plant, cold store or anywhere a hose and sanitizer come at the box, step up to stainless: our 304 line is the indoor washdown and food-and-beverage grade, and 316L is the grade for salt, brine, chlorides and pharma areas.
Chlorides decide it. Stress corrosion in either grade needs roughly 60 °C (140 °F) to start, so a fridge never reaches that regime. Deposits are the practical risk: 304 pits at room temperature under chloride deposits and inside gasket crevices, so a box under sanitizer spray or brine splash gets 316L. A wiped-down home box never sees that loading.
Outside sizes in the stainless wall-mount range run from 6 x 4 x 4 in (H x W x D) to 60 x 36 x 16 in. The custom line builds the size you set from one piece — material, width, height, depth and every cutout — delivered in 10 business days, counted for custom work from your approval of the drawing. Browse the stainless wall-mount enclosures, or send the layout to custom enclosures and get a drawing back.
Layout, battery and LCD at fridge temperature
Lay the parts out flat before you order anything. A full-size breadboard measures 6.5 x 2.2 in, a 16x2 character LCD about 3.1 x 1.4 in, a four-AA holder about 2.4 x 2.5 in, and an Arduino UNO 2.7 x 2.1 in. Run the breadboard and holder along the length and the LCD across the width, then add 0.5 in of clearance on every face. That lands the plan near 9 x 6 in with 3 in of depth: 6.5 + 2.4 in of parts along a 9 in length, 2.2 + 3.1 in across a 6 in width. Once the circuit works, solder it; the board, display and holder alone need about half the volume, and a breadboard's spring contacts are the first thing damp cycles corrode.
Cold cuts the battery budget. Alkaline cell datasheets rate AAs at 2,000-3,000 mAh at 20 °C; near freezing roughly two-thirds stays usable, about 1,500 mAh. A board sleeping at 2 mA runs 750 h on that, about a month; the LCD backlight alone at 50 mA flattens the same cells in 30 h. Fit a 12 mm momentary pushbutton through the lid and wake the display only when you look. Lithium primary cell datasheets commonly run to −40 °C with most capacity kept cold. Charge lithium-ion packs only at room temperature: charging below 0 °C plates lithium onto the cell and ruins it.
The display is fine at fridge temperature. Character LCD datasheets commonly start at −20 °C, so the fridge sits inside range; the visible effect is sluggish response for the first minutes in the warm. The same low-temperature behavior is covered for an outdoor HMI operating temperature below freezing.
What to order
| Where it lives | Case | Sealing | Sensor entry | Extras |
|---|---|---|---|---|
| Home fridge, hobby logger | Sealed polycarbonate case, about 9 x 6 x 3 in | Gasketed lid, IP65 | IP67 PTFE membrane vent, M20 x 1.5, low on a side face | 12 mm pushbutton wake, 1 in standoff off the back wall |
| Food-plant fridge or cold room, hosed | 304 stainless wall-mount, manufacturer-rated NEMA 4X-type / IP66 | Gasketed hinged door | IP67 membrane vent in a round deburred cutout | Feet and standoff; vent sized to the sensor ledge |
| Brine, sanitizer or pharma cold storage | 316L stainless wall-mount, same rating | Same door seal | Same membrane vent | 316L everywhere chlorides can sit |
For a custom stainless build, put these on the order: material, 304 or 316L; width x height x depth from your layout; a cutout for the M20 x 1.5 vent; a 12 mm pushbutton hole; and a window cutout if you want to read the LCD through the lid. Delivery runs 10 business days from your approval of the drawing.
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 |
|---|---|---|---|
| 16 × 12 × 8 in | 316L stainless | 16 x 12 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 24 × 20 × 8 in | 316L stainless | 24 x 20 x 8 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 30 × 24 × 10 in | 316L stainless | 30 x 24 x 10 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
| 12 × 10 × 6 in | 316L stainless | 12 x 10 x 6 in | Rated NEMA 4X / IP66 by the manufacturer; not UL listed |
Questions
Will the box fog up when I carry it out of the fridge?
Yes. Kitchen air at 21 °C and 50 % RH has a dew point of 10.2 °C, and the case leaves the fridge at 4 °C, 6.2 K below it, so water films the shell and display within minutes. That film sits outside the sealed electronics. Wipe the case dry, or wait until it warms past about 11 °C, before you open it for a battery change.
Can a DHT11 report humidity inside a fridge?
Treat it as an indication only. The datasheet rates the sensor 0 to 50 °C and 20 to 90 % RH, and fridge air often sits above that ceiling. The temperature channel covers the job. A wetted element drifts, and the datasheet's own recovery bake (2 h at 50-60 °C, under 10 % RH) is the fix you never want to need.
Which battery chemistry survives fridge temperature?
Alkaline AA cells lose roughly a third of their 2,000-3,000 mAh room-temperature rating near 0 °C, leaving about 1,500 mAh usable. Lithium primary AA cells keep most of their capacity and are commonly rated to −40 °C. Either way, wake the display with a pushbutton: a 50 mA backlight flattens cells in 30 h, while a board sleeping at 2 mA runs about a month.
Does a membrane vent lower a sealed box's IP rating?
It holds the rating when the vent itself documents IP67 on both digits and sits gasketed in a round, deburred cutout on a flat face, tightened to its datasheet. Then an IP66 assembly stays IP66, because air diffuses through the membrane while jets and immersion stay out. A vent with any lower rating sets the whole assembly to its own number.
How accurate is a fridge temperature reading inside a sealed box?
The DHT11's own accuracy is ±2 °C, so build to that. The sensor follows air temperature in seconds; the box air lags the fridge by a few minutes after door openings, and less when the sensor sits close to the vent. That lag is tiny against fridge control, which holds its setpoint near the food-safety target with swings of its own.





