Best Enclosures and Project Boxes for ESP32: 11 IP65, IP67, Clear-Lid, DIN Rail and Outdoor Mounting Picks Compared (Buying Guide)

⚠️ Affiliate Disclosure: This post contains Amazon affiliate links. If you purchase through our links, we may earn a small commission at no extra cost to you. Every product below was checked against its live Amazon listing before publishing. Prices change often, so we don’t list them here. Tap any Buy Here button to see the current price on Amazon.
Ultimate Buying Guide

πŸ“¦ Best Enclosures and Project Boxes for ESP32

Turn a breadboard prototype into something you can mount on a wall, a fence post or a DIN rail. 11 verified picks: IP65 and IP67 boxes in every size, a clear lid for displays, mini cases for tiny boards, a DIN rail carrier and the glands, vents, shields and standoffs that make an install last.

βœ… 11 Picks Compared βœ… Verified Amazon ASINs βœ… IP Ratings Explained βœ… Wi-Fi & Condensation Tips
🧭 Comparing ESP32 chips? Our ESP32 chip comparison hub compares every ESP32 chip side by side and links to all of our ESP32 buying guides.

Most ESP32 projects fail in the field for boring reasons: rain gets in, condensation corrodes the pins, a cable gets yanked, or the board overheats in direct sun. A proper enclosure fixes all of that, and it’s often the difference between a project that lasts a week and one that runs for years.

This guide covers 11 products: IP65 and IP67 project boxes from tiny to large, a clear-lid box for displays and status LEDs, mini cases for XIAO and SuperMini boards, a DIN rail carrier for control panels, and the accessories that matter most outdoors: cable glands, a breather vent, a sensor radiation shield and a standoff kit for mounting boards securely.

πŸ’‘ Before you buy: Use a plastic enclosure for Wi-Fi, Bluetooth, Thread and LoRa: metal boxes block radio signals, and even plastic should keep the ESP32’s antenna away from batteries and wiring. IP65 protects against dust and water jets (fine for rain); IP67 survives temporary immersion. Plan for condensation: sealed boxes trap moisture as they heat and cool, so add a breather vent or a desiccant pack. Measure your board and its USB plug and cables before choosing a size.

⚑ Quick Comparison: All 11 Picks

ProductTypeSize / SpecBest ForBuy
πŸ₯‡ Zulkit IP65 Box (2-Pack)IP65 box100 Γ— 68 Γ— 50 mmBest OverallBuy Here β†’
πŸ… LeMotech IP65 Box (Large)IP65 box200 Γ— 120 Γ— 75 mmRelays, Batteries & ControllersBuy Here β†’
πŸͺŸ IP65 Box with Clear Cover (2-Pack)IP65 box100 Γ— 68 Γ— 50 mm, clear lidDisplays & Status LEDsBuy Here β†’
⬜ IP65 Junction Box (White)IP65 box150 Γ— 110 Γ— 70 mmMid-Size BuildsBuy Here β†’
πŸšͺ Hinged Outdoor Box (IP67)IP67 hinged box11.2″ Γ— 7.7″ Γ— 5.1″Solar & Outdoor SystemsBuy Here β†’
🀏 Mini ABS Cases (5-Pack)Indoor case60 Γ— 36 Γ— 17 mmXIAO & SuperMini BoardsBuy Here β†’
πŸ—„οΈ DIN Rail PCB CarrierDIN rail mountFor 47.35 Γ— 72 mm PCBsControl PanelsBuy Here β†’
πŸ”© TUPARKA Cable Glands (50-Pack)AccessoryPG7–PG19, 3–16 mm cablesSealed Cable EntryBuy Here β†’
πŸ’¨ IP68 Breather Vents (2-Pack)AccessoryM12 Γ— 1.5Stopping CondensationBuy Here β†’
β˜€οΈ Ambient Weather Radiation ShieldSensor shieldLouvred, with bracketOutdoor Temp SensorsBuy Here β†’
🧱 M2/M2.5/M3 Standoff Kit (480 pcs)AccessoryBrass standoffs, screws, nutsMounting BoardsBuy Here β†’

Sizes are the outer dimensions from the live Amazon listings; inner space is smaller once you allow for walls, screw posts and the lid seal.

πŸ” What to Look for in an ESP32 Enclosure

πŸ“‘

Radio-Friendly Material

ABS and polycarbonate let Wi-Fi through; metal doesn’t. Keep the ESP32’s PCB antenna clear of batteries, relays and metal mounting plates, or choose a board with an external antenna connector.

πŸ’§

The Right IP Rating

The first digit is dust protection, the second water. IP65 handles rain and hosing; IP67 handles brief submersion. Indoors, any closed box will do.

πŸ“

Enough Space

Allow room for the USB plug, wire bend radius, terminal blocks and airflow. A DevKitC is about 55 Γ— 28 mm, but with cables it needs much more. When in doubt, go one size up.

πŸ”©

Sealed Cable Entry

A drilled hole ruins the IP rating. Use cable glands sized to your cable, and point them downward so water drips away rather than running in.

🌑️

Heat and Sun

A dark box in direct sun can get very hot, which shortens battery life and skews temperature readings. Use a light colour, shade the box, and mount climate sensors outside in a radiation shield.

πŸ† Detailed Reviews: Enclosures for ESP32

πŸ₯‡ BEST OVERALL

Zulkit IP65 Waterproof Project Box (2-Pack)

⭐ 4.7/5 · Over 3,600 Ratings
IP65
DUST & WATER JETS
100 Γ— 68
Γ— 50 mm OUTER
ABS
RADIO-FRIENDLY
2-Pack
ONE SPARE
Buy on Amazon β†’
Zulkit IP65 waterproof ABS project box 100x68x50mm

Zulkit’s IP65 project boxes are the most popular small enclosures on Amazon (about 4.7 stars from 3,600+ ratings), and the 100 Γ— 68 Γ— 50 mm size is the sweet spot for most ESP32 projects. It comfortably holds an ESP32 DevKit or XIAO board, a sensor breakout and a small LiPo or a short USB cable, with room for a cable gland on the side. The ABS body is radio-friendly, so Wi-Fi, Bluetooth and Thread work fine through the walls, and the gasketed lid gives IP65 protection against dust and rain. Zulkit sells the same design in several sizes and colours, so you can standardise on one style across all your nodes. This listing is a 2-pack.

βœ… Pros
  • Huge review base
  • IP65 gasketed lid
  • Ideal size for one board + sensor
  • Many sizes in the range
❌ Cons
  • No mounting plate
  • You drill your own holes
  • Black heats up in sun
🎯 Verdict: The default box for small indoor and outdoor ESP32 nodes.

πŸ‘‰ Check Price on Amazon β†’

πŸ… BEST FOR RELAYS, BATTERIES AND CONTROLLERS

LeMotech IP65 ABS Project Box (200 Γ— 120 Γ— 75 mm)

⭐ 4.7/5 · Room for the Whole System
IP65
RUBBER GASKET SEAL
200 Γ— 120
Γ— 75 mm OUTER
ABS
IMPACT RESISTANT
2,782
AMAZON RATINGS
Buy on Amazon β†’
LeMotech IP65 ABS project box 200x120x75mm

Once a project includes a relay board, an 18650 holder, a solar charge manager or a terminal block, small boxes run out of room fast. LeMotech’s 200 Γ— 120 Γ— 75 mm IP65 box (about 4.7 stars from 2,782 ratings) is big enough for a complete system: an ESP32, a 4-channel relay board, a power supply and neat wiring with space to work. Its rubber gasket keeps moisture and dust out, and the thick ABS walls take cable glands and panel-mount connectors well. It’s a good match for the relay boards in our ESP32 relay board guide and the solar setups in our ESP32 power guide. If you’re switching mains voltage inside it, follow local electrical code and keep mains and low-voltage wiring separated.

βœ… Pros
  • Space for full systems
  • IP65 gasket
  • Thick walls for glands
  • Strong review base
❌ Cons
  • No internal mounting plate
  • Bulky for small nodes
  • Black heats in sun
🎯 Verdict: The box to choose when your ESP32 project has relays, batteries or a power supply.

πŸ‘‰ Check Price on Amazon β†’

πŸͺŸ BEST FOR DISPLAYS Β· ⭐ 4.7/5

3. IP65 Waterproof Project Box with Clear Cover (2-Pack)

ABS black body Β· transparent lid Β· 100 Γ— 68 Γ— 50 mm Β· IP65
Buy Here β†’
IP65 waterproof project box with clear cover

A clear lid means you can read an OLED, e-paper or TFT display, see status LEDs and check that everything’s working without opening the box. This 2-pack (about 4.7 stars from 1,250 ratings) pairs a black ABS body with a transparent cover in the same 100 Γ— 68 Γ— 50 mm size as our top pick, sealed to IP65. It’s ideal for weather stations with a local readout, garden sensors with an e-paper display, or a garage door controller with status lights. A clear lid also lets light reach a BH1750 light sensor or solar cell inside. Mount the display close to the lid to avoid reflections.

βœ… Pros: See displays and LEDs; IP65; 2-pack; great rating.
❌ Cons: Clear lid lets in sunlight and heat; scratches show.
🎯 Verdict: The best box for ESP32 projects with a screen or status lights.
⬜ BEST MID-SIZE BOX · ⭐ 4.5/5

4. IP65 ABS Junction Box, White (150 Γ— 110 Γ— 70 mm)

Dustproof and waterproof Β· impact-resistant ABS Β· white finish
Buy Here β†’
White IP65 ABS junction box 150x110x70mm

This 150 Γ— 110 Γ— 70 mm box is the most-reviewed enclosure in this guide (about 4.5 stars from 4,300+ ratings) and fills the gap between the small and large picks: room for an ESP32, a couple of sensor boards and an 18650 holder. Its white finish is a real advantage outdoors, because it reflects sunlight and stays cooler than black boxes, which helps both battery life and temperature accuracy. The IP65 ABS body suits gardens, sheds, garages and greenhouses.

βœ… Pros: Cooler white finish; versatile size; huge review base.
❌ Cons: Single box; no mounting plate.
🎯 Verdict: The mid-size, sun-friendly box for outdoor ESP32 nodes.
πŸšͺ BEST LARGE OUTDOOR BOX Β· ⭐ 4.7/5

5. Hinged Waterproof Outdoor Electrical Box (IP67, 11.2″ Γ— 7.7″ Γ— 5.1″)

Hinged lid Β· IP67 Β· ABS Β· large interior for complete systems
Buy Here β†’
Hinged waterproof outdoor electrical box IP67

For permanent outdoor installs such as solar-powered weather stations, pump controllers, gate controllers or LoRa gateways, a hinged lid makes maintenance far easier than unscrewing four corners on a ladder. This IP67 box (about 4.7 stars from 1,834 ratings) measures 11.2 Γ— 7.7 Γ— 5.1 inches, enough for a charge controller, a battery, an ESP32 and a relay board. Its ABS construction keeps it radio-friendly; mount antennas outside or close to the lid for best range.

βœ… Pros: Hinged lid; IP67; big interior; strong reviews.
❌ Cons: Large and pricier; overkill for small nodes.
🎯 Verdict: The outdoor box for complete solar and control systems.
🀏 BEST FOR TINY BOARDS · ⭐ 4.6/5

6. Mini ABS Project Cases (5-Pack, 60 Γ— 36 Γ— 17 mm)

Surface-mount ABS cases Β· black Β· five pieces Β· indoor use
Buy Here β†’
Mini ABS project case 60x36x17mm 5-pack

Tiny boards like the XIAO ESP32C3/C6/S3 and ESP32-C3 SuperMini deserve tiny cases. These 60 Γ— 36 Γ— 17 mm ABS boxes (about 4.6 stars from 1,761 ratings, 5-pack) are just big enough for one of those boards plus a small sensor, which makes them perfect for indoor room sensors, BLE beacons, Bluetooth proxies and plug-in USB gadgets. Drill a slot for the USB-C plug and a few ventilation holes near the sensor. They’re not waterproof, so use them indoors. Only 20 were in stock when we checked.

βœ… Pros: Tiny; 5-pack; perfect for XIAO-size boards.
❌ Cons: Indoor only; too small for DevKitC boards.
🎯 Verdict: The neat little case for XIAO and SuperMini room sensors.
πŸ—„οΈ BEST FOR CONTROL PANELS Β· ⭐ 4.7/5

7. DIN Rail Mount PCB Carrier (for 47.35 Γ— 72 mm Boards)

Snap-on DIN rail carrier Β· holds 47.35 Γ— 72 mm PCBs Β· housing and bracket
Buy Here β†’
DIN rail mount carrier for PCBs

If your ESP32 lives in a distribution board, a pump-room cabinet or an industrial control panel, it should clip onto the same 35 mm DIN rail as the breakers and contactors. This DIN rail carrier (about 4.7 stars from 38 ratings) holds a PCB of 47.35 Γ— 72 mm, so mount your ESP32 on a perfboard or adapter cut to that size, then snap it onto the rail. Alternatively, Waveshare’s industrial relay boards in our relay guide already come in rail-mountable cases. Only 19 were in stock when we checked.

βœ… Pros: Standard DIN rail mounting; tidy panels.
❌ Cons: Needs a carrier PCB of the right size; open sides.
🎯 Verdict: The simple way to put a custom ESP32 board on a DIN rail.

πŸ› οΈ Detailed Reviews: Accessories That Make Installs Last

πŸ”© BEST CABLE GLANDS Β· ⭐ 4.6/5

8. TUPARKA Waterproof Cable Glands (50-Pack)

PG7, PG9, PG11, PG13.5, PG16 and PG19 Β· 3–16 mm cables Β· gaskets included Β· storage box
Buy Here β†’
TUPARKA waterproof cable gland assortment 50-pack

Every cable that enters an outdoor box is a potential leak, and cable glands are how you keep the IP rating. This TUPARKA assortment (about 4.6 stars from 2,044 ratings) includes 50 glands in six sizes, PG7 to PG19, covering cables from 3 to 16 mm, with gaskets and a storage box. Use PG7 for thin sensor and USB cables, and larger sizes for power and multi-core cables. Drill the hole to the gland’s thread size, fit it from outside, tighten the nut inside, then tighten the dome around the cable. Mount glands on the bottom of the box where possible.

βœ… Pros: Six sizes; 50 pieces; gaskets included.
❌ Cons: Needs correctly sized holes; USB plugs won’t pass through small glands.
🎯 Verdict: The essential add-on for any outdoor ESP32 enclosure.
πŸ’¨ BEST CONDENSATION FIX Β· ⭐ 4.7/5

9. IP68 Breather Vents, M12 Γ— 1.5 (2-Pack)

Pressure equalization valve Β· dual-port design Β· dust and water protection Β· M12 thread
Buy Here β†’
IP68 breather vent M12 pressure equalization valve 2-pack

A perfectly sealed box isn’t always a dry box. As it heats in the sun and cools at night, it breathes air in through the tiniest gaps and moisture condenses inside, eventually corroding pins and connectors. A breather vent with a waterproof membrane equalizes pressure while keeping water out. These M12 Γ— 1.5 vents (about 4.7 stars from 44 ratings, 2-pack) screw into a drilled hole like a cable gland. Fit one on the underside of the box, and add a silica gel pack for extra protection in humid climates.

βœ… Pros: Stops pressure-driven condensation; easy fit.
❌ Cons: Few reviews; needs an M12 hole.
🎯 Verdict: A small part that adds years to outdoor ESP32 installs.
β˜€οΈ BEST SENSOR SHIELD Β· ⭐ 4.5/5

10. Ambient Weather WH31-SRS Solar Radiation Shield

Louvred shield Β· allows airflow while blocking sun and rain Β· mounting hardware and U-bolt included
Buy Here β†’
Ambient Weather WH31-SRS solar radiation shield

A temperature sensor inside a sealed box in the sun will read far too high. Professional weather stations solve this with a louvred radiation shield (a Stevenson screen) that blocks sun and rain while letting air flow over the sensor. Ambient Weather’s WH31-SRS (about 4.5 stars from 193 ratings) is made for its own sensors, but it’s a popular, inexpensive housing for a BME280 or SHT31 breakout on a short cable from your ESP32 enclosure. It includes mounting hardware and a U-bolt for poles and fences. Check the internal space against your breakout before buying.

βœ… Pros: Accurate outdoor readings; U-bolt included.
❌ Cons: Designed for Ambient sensors; limited interior.
🎯 Verdict: The easy fix for outdoor temperature sensors that read too hot.
🧱 BEST STANDOFF KIT · ⭐ 4.6/5

11. M2, M2.5 and M3 Brass Standoff, Screw and Nut Kit (480 pcs)

Hex male-female brass standoffs Β· screws and nuts Β· three thread sizes Β· storage box
Buy Here β†’
M2 M2.5 M3 brass standoff screw and nut kit 480 pieces

Loose boards rattle, short against each other and break solder joints. A standoff kit lets you mount every board securely off the enclosure floor, and this 480-piece set (about 4.6 stars from 923 ratings) covers the three common sizes: M2 for small boards, M2.5 for many dev boards and displays, and M3 for relay boards and larger modules. Use nylon screws or washers where a standoff could touch a trace, and fix the standoffs to the box floor with short screws or a dab of epoxy.

βœ… Pros: Three sizes; 480 pieces; brass; organised box.
❌ Cons: Conductive brass needs care near traces.
🎯 Verdict: The kit that keeps every board in your enclosure firmly in place.

πŸ›’ Which Enclosure Fits Your Project?

🌱

Single sensor node?

The Zulkit 100 Γ— 68 mm box plus a PG7 gland.

πŸ“Ί

Project with a display?

The clear-cover IP65 box.

⚑

Relays or a power supply?

The LeMotech 200 Γ— 120 mm box.

β˜€οΈ

Solar weather station?

White 150 Γ— 110 mm or hinged IP67 box + radiation shield + vent.

πŸ›‹οΈ

Indoor room sensor?

A mini 60 Γ— 36 mm case with a XIAO board.

πŸ—„οΈ

Electrical panel?

The DIN rail carrier, or a rail-mount relay board.

❓ Frequently Asked Questions

Will Wi-Fi work inside a plastic enclosure?

Yes. ABS and polycarbonate barely affect 2.4 GHz signals. Range drops more from what’s inside the box: keep batteries, relays, metal plates and wiring away from the ESP32’s antenna end. In a metal cabinet, use a board with an external antenna connector and mount the antenna outside.

How do I stop condensation inside an outdoor box?

Fit a membrane breather vent so pressure can equalize without sucking in wet air, mount cable glands on the bottom, add a silica gel pack, and keep the box out of direct sun. A conformal coating spray on the PCB adds another layer of protection in very humid places.

Why does my temperature sensor read high inside the box?

The ESP32, regulator and sun all heat a sealed box. Mount the sensor outside the enclosure in a radiation shield on a short cable, or at least in a ventilated corner away from the board. Our ESP32 sensors guide covers sensor placement too.

Should I 3D print my own enclosure?

3D-printed cases are great indoors and give a perfect fit. Outdoors, PLA softens in summer heat; PETG or ASA last much longer, but printed walls are rarely as waterproof as a gasketed commercial box. Many makers combine both: a commercial IP65 box with a 3D-printed internal mounting plate.

Can I put mains wiring in these boxes?

Project boxes are general-purpose enclosures. For mains voltage, follow your local electrical code, use rated terminal blocks and cable entries, keep mains and low-voltage wiring separated, and have a qualified electrician do or check the installation.

🏁 Final Verdict: Best Enclosures for ESP32 Projects

The right box and accessories for a long-lasting install:

πŸ₯‡ Best Overall: Zulkit IP65 Box (2-Pack)
Buy Here β†’
πŸ… Best for Full Systems: LeMotech 200 Γ— 120 Γ— 75 mm
Buy Here β†’
πŸͺŸ Best for Displays: IP65 Clear-Cover Box
Buy Here β†’
πŸšͺ Best Outdoor Box: Hinged IP67 Electrical Box
Buy Here β†’
πŸ”© Must-Have Accessory: TUPARKA Cable Glands
Buy Here β†’
β˜€οΈ Best Sensor Shield: Ambient Weather WH31-SRS
Buy Here β†’

For most ESP32 projects, start with a Zulkit IP65 box and a pack of cable glands. Step up to the LeMotech or hinged IP67 box when relays, batteries or solar gear join the build, pick the clear-cover box for anything with a screen, and use mini cases for tiny indoor sensors. Outdoors, add a breather vent and put climate sensors in a radiation shield, and your project will survive far longer than a bare board ever could. For what goes inside, see our ESP32 chip comparison hub, sensors guide and power guide, and keep battery nodes running for months with our deep sleep tutorial.

πŸ’¬ Mounting an ESP32 outdoors, in a panel or on a wall? Tell us what’s going inside and where it will live in the comments below, and we’ll suggest the right enclosure.

All Amazon links above use our affiliate tag (esp32tutorials-20). Purchasing through them supports esp32tutorials.com at no extra cost to you. Prices and availability change frequently, so always confirm the current price on Amazon before buying.

Leave a Comment