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

Lockable weatherproof enclosure for unattended outdoor electronics

Short answer: a 304 stainless box rated NEMA 4X / IP66 by the manufacturer (not UL listed), a key-retaining keyed-alike quarter-turn compression latch, mounting bolts reached only from inside, and the RFID window on the door face. A cordless angle grinder still opens any sheet-metal box in minutes, so buy minutes of resistance, a tamper switch that alerts you, and concealed fasteners, not a promise of theft-proof.

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

Buy the lock, not the mythology. Order a 304 stainless box rated NEMA 4X / IP66 by the manufacturer (not UL listed), a key-retaining quarter-turn compression latch cut keyed-alike, back-wall mounting holes so the bolts are reachable only with the door open, and the RFID window on the vertical door face. That package shrugs off rain, hose washdown and the passer-by with a screwdriver. A cordless angle grinder still opens it, because sheet metal is sheet metal, so the honest spec is minutes of resistance, a tamper switch that reports the door, and attachment hardware nobody outside can see. Size the box to the heat first and the lock second.

How much security you can actually buy

Start by naming the thief, because the hardware follows. A passer-by pulls handles; a copper thief carries a pry bar and bolt cutters; a determined one brings a cordless angle grinder. Write the spec in minutes and layers: a lock that resists levering, fasteners only an open door reveals, a switch that alerts you, and a marked install the police can identify.

Who you are stopping What they carry What holds
Passer-by Hands, screwdriver Any keyed quarter-turn latch; pulling the door opens nothing.
Opportunist Pry bar, 24 in bolt cutters A 3-point latch, a recessed hasp and inside-only bolts make it a slow, visible job.
Determined thief Cordless angle grinder Nothing in sheet metal; expect the door open inside 5 min. Plan detection and a spare box.

The sentence worth pinning above your drawing: "burglar proof" appears in nobody's datasheet. Minutes plus an alarm path is a spec you can actually buy and hold a supplier to.

The lock for an unattended door

Make it a quarter-turn compression latch: 90 degrees of turn cams the door onto its gasket and holds the working compression at 20-30%, the range gasket makers' design guides use for solid elastomer seals. The compression does two jobs at once. It keeps the seal through vibration and daily opening, and it leaves a pry bar no relaxed gap to start in. Order the cylinder key-retaining, so the key releases only in the locked position and a technician cannot walk away from an open door. Cut every cylinder to one keyed-alike code and order all locks in the same purchase, so they ship cut to that code as a set.

For the key itself, take a dimple or disc-tumbler profile with a restricted copy code over the common square cam key, so copies exist only through the code holder. Tamper-resistant quarter-turn kits come in 1-point and 3-point versions, and the 3-point kit drives rods into the top and bottom of the frame, holding the door on three edges. A latch fitted into a rated door keeps the door's rating, the same logic that keeps a lockable HMI cover on a 4X door sealed. The flange under the gasket must hold that compression edge to edge, and the cover flatness article shows how flat it has to stay.

Add a padlockable hasp as the second lock for crews that already carry padlocks. Recess the hasp so only a sliver of shackle stands proud and fit a shrouded padlock, because a shackle swinging in open air is exactly what mid-size bolt cutters are for.

Hinges and pry points

Concealed hinges remove an outside attack line completely. If the door hangs on external hinges, order fixed pins or hinge-side door retainers: studs that hold the door in the frame even with the pins gone, so the lock side stays in charge. Hang the door to swing away from the public side, against a wall or fence line, and the structure shields the gap for you.

The rating the site needs

Rain on the lid, a hose in the yard and dust on the road is Type 4X / IP66 work. IEC 60529 earns the second 6 with a 12.5 mm nozzle delivering 100 L/min from 2.5 to 3 m for at least 3 min, and the first 6 means dust-tight. NEMA 250 then adds corrosion: a Type 4X box takes another 200 hours of salt spray, judged against a 304 stainless specimen. NEMA itself tests nothing; the maker rates the design. Write it as it is on the order: rated NEMA 4X / IP66 by the manufacturer, not UL listed. On inspected US jobs, NEC 110.28 keeps enclosure types in charge, so a spec that names a type gets the type marked on the box with the IP code alongside. When the inspector wants a UL 50E listing specifically, start at the UL 50E versus NEMA 250 guide; the NEMA 4X versus IP66 guide and the outdoor enclosures guide carry the rest of the outdoor detail.

304 or 316L for your site

304 covers most outdoor sites: rain, hosing, UV and general pollution. Move to 316L when chlorides reach the box and sit on it, meaning coastal salt air, brine, or de-icing spray thrown by traffic. Molybdenum in 316L buys the pitting and crevice resistance that matters there, and a gasket crevice holding salty water is precisely where 304 pits, even at room temperature. Both grades share the chloride stress-corrosion threshold near 60 C [140 F], so a hot chloride site calls for a design change, not a grade change. The 20 x 16 x 6 in 304 box serves the inland utility yard; the same size in 316L belongs on the marina berth.

Where the reader and the cables go

Put the card reader on the vertical door face, in front of the user, behind a bonded weather-rated window; the RFID reader behind metal article sets the reader spacing and the window material that lets the field through. The top face is the worst real estate on any enclosure: water stands on it and sun cooks it, so a reader that must face up needs a sloped cap that sheds. Bring cables through the bottom wall on IP66 glands with a drip loop below each. Glands facing up are the classic self-inflicted leak on outdoor boxes, and the glands facing up article shows the failure.

Every accessory sets the assembly's rating to its own: one IP54 gland on an IP66 box leaves the box IP54 at that hole, so order glands, connectors and any breather at IP66 or better. A membrane breather earns its place here, because a sealed box breathes through its leaks as it heats by day and cools at night; giving that air a rated path cuts the condensation cycling. If the solar kit includes a battery, house it in its own vented compartment built to the battery maker's instructions. AGM and gel cells can vent hydrogen while charging, and a gasketed electronics box is the wrong room for that.

Mounting so the box stays put

Order the back wall drilled for mounting with the bolt heads inside, and from outside a thief meets smooth stainless and the lock. Stock wall-mount boxes come on feet; for an unattended site, take the custom route with back-wall holes instead and bolt through with 3/8 in stainless hardware: sleeve anchors into masonry, through-bolts into a steel frame. On a pole, through-bolt with the nuts inside the enclosure, because banding strap parts in one pass; the pole mounting article covers the sealing side of that job. Hang the box in the shadow of the solar array where you can, since a stainless skin in direct sun runs well above air temperature and the panel's shade is free. Set the card window near 48 in [1.2 m] above grade for a comfortable tap, and if a breaker lives inside, keep its highest handle at or below 6 ft 7 in [2.0 m]; that is NEC 240.24(A). Mounting through the back keeps the weather rating when the holes are done right, which the mounting without losing the rating article walks through.

Heat: size the box before the lock

A sealed box sheds heat only through its skin, so use the planning value k = 3.7 W/m²K for a stainless wall. Worked example for a typical solar IoT load: an LTE router at 8 W, a charge controller at 4 W, and a small supply plus tamper circuit at 3 W, so 15 W total.

  • Candidate box, 20 x 16 x 6 in (H x W x D) = 0.508 x 0.406 x 0.152 m, giving 2 x (0.508 x 0.406 + 0.508 x 0.152 + 0.406 x 0.152) = 0.69 m² of skin.
  • Temperature rise = 15 W / (3.7 W/m²K x 0.69 m²) = 5.9 K.
  • At 40 C ambient the inside sits near 46 C, and industrial IoT and cellular gear rated to 70 C keeps 24 K of headroom.

The same 15 W in a 12 x 10 x 6 in box, with 0.32 m² of skin, rises 15 / (3.7 x 0.32) = 12.5 K and lands near 52.5 C. Bigger steel helps only so far: a 24 x 24 x 8 in box has 1.24 m² of skin, rises 3.3 K and still holds about 43 C at 40 C ambient. So decide on the parts, not the steel: anything rated only 40 C ambient has no home in a sealed outdoor box, while 55-70 C-rated industrial electronics fits with margin. Shade the box, and the margin grows.

What to put on the order

Write the spec as one table and send it with your layout drawing:

Order line What to write
Body 304 stainless (316L where salt air or de-icing spray lands on it)
Size 20 x 16 x 6 in (H x W x D) for a 15 W load; 24 x 24 x 8 in for hot sites
Rating NEMA 4X / IP66, manufacturer-rated, not UL listed
Door hardware Key-retaining quarter-turn compression latch, dimple key, keyed alike; 3-point kit at high-risk sites; recessed padlockable hasp
Hinges Concealed, or fixed pins with hinge-side retainers; door swings away from the public side
Cutouts RFID window in the door face; cable glands on the bottom wall; one IP66 breather
Mounting Back-wall holes from inside, 3/8 in stainless anchors
Tamper Plunger switch on the door frame to a spare input

On custom enclosures you set the material, the three dimensions and every cutout, and the enclosure selector narrows the size if you would rather start from inside dimensions and DIN module count. If the sizes above miss, the wall-mount range runs from 6 x 4 x 4 in to 60 x 36 x 16 in, and anything between is a drawing. Delivered in 10 business days, anywhere in the world, counted from your approval of the drawing for custom work.

Enclosures in this article

EnclosureMaterialOutside H x W x D / displayRating
12 × 10 × 6 in304 stainless12 x 10 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 6 in304 stainless20 x 16 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
24 × 24 × 8 in304 stainless24 x 24 x 8 inRated NEMA 4X / IP66 by the manufacturer; not UL listed
20 × 16 × 6 in316L stainless20 x 16 x 6 inRated NEMA 4X / IP66 by the manufacturer; not UL listed

Questions

Can a lockable door still be NEMA 4X?

Yes, when the latch is part of the rated design: a quarter-turn compression latch turns 90 degrees and presses the gasket into its 20-30% working compression, and its gasketed boss seals the hole it sits in. The rating belongs to the whole assembly, so have the door cut for the latch at the factory rather than improvising a hardware-store lock through the skin.

How long does an enclosure lock hold against an angle grinder?

Minutes at best: a cordless angle grinder opens a stainless door in well under 5 minutes, and no latch made for sheet metal changes that. Spec the layers that work instead: a picking-resistant key profile, bolts reached only from inside, a plunger switch that reports the opening over your cellular link, and a spare box on the shelf for the day it happens.

Keyed alike or keyed different for a technician route?

Keyed alike. One crew walking a route of solar IoT cabinets carries a single key, and you order every cylinder in the same purchase so the maker cuts them all to one code. When routes split between crews later, re-order that site's lock on a second code, and keep key-retaining cylinders so a door physically cannot be left unlocked.

Is 304 stainless enough outdoors, or do I need 316L?

304 covers most outdoor sites, including rain, hosing and general pollution, and the Type 4X corrosion test already runs 200 hours of salt spray against a 304 stainless specimen. Move to 316L when chlorides land on the box and stay there: coastal salt air, brine, or de-icing spray thrown by traffic. In gasket crevices that hold salty water, 304 can pit even at room temperature.

Does a padlock hasp break the weatherproof rating?

Not when the hasp is part of the latch design: a factory padlockable compression latch keeps the gasket compressed whether a padlock is fitted or not. What breaks ratings is an afterthought hasp screwed through the door wall leaving unsealed holes. Recess the hasp and use a shrouded padlock, so bolt cutters find almost no shackle to bite.

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 12 × 10 × 6 inRequest a custom quote

Outdoor enclosures: sizes for this job

Keep reading

Related engineering answers

All articles

Buying guides

The guides behind this answer

All guides