Choosing filament for sensor enclosures: PLA vs PETG vs ASA, vents and radar-friendly plastics

Render of our free 3D-printable vented housing for the Clean Air Station kit

Most hobby enclosures fail for one of three reasons: the plastic softens in heat, the sensor can't "see" or "breathe" through the box, or the electronics warm the sensor they're measuring. This guide covers all three.

PLA, PETG or ASA?

The number that matters most for a sensor box is how hot the plastic can get before it starts to sag. Prusa's technical data sheets give these heat deflection temperatures (ISO 75, 0.45 MPa) for their own filaments:

Material Heat deflection Good for Avoid for
PLA 55 °C Indoor boxes on a desk or wall, prototypes Sunny windows, cars, lofts, near heaters, outdoors
PETG 68 °C Garages, kitchens, warm rooms, damp spaces Long-term direct sun (fades, gets brittle)
ASA 93 °C Outdoor and sun-exposed boxes; it's sold as UV-resistant Printers without an enclosure (warps; ventilate the fumes)

Other brands differ, so check the data sheet for the spool you actually buy. Our housing READMEs default to PLA for indoor kits and PETG or ASA for weather, garden and tank kits.

Gas, CO₂ and humidity sensors need air, not heat

  • Give them airflow on more than one side. Our air-quality housings have vent slots in both long walls, the end wall and the lid over the sensor bay, so room air can pass through rather than sit in a dead pocket.
  • Separate the sensor from the controller. ESP32 boards, displays and MEMS gas sensors with built-in heaters all warm the air around them. A temperature or humidity sensor next to them reads high and dry. We add a baffle wall between the controller and the air sensors and put the sensors at the far end of the box.
  • Don't seal or glue over the sensor opening, and don't put foam or filter cloth over it unless the sensor maker says that's fine.
  • Calibrate against a reference. Even with good venting, an enclosed sensor can read a little warm. Compare it with a trusted thermometer for a day and apply an offset in your firmware.

Sensor makers publish design-in guides for their parts (Sensirion does for its SCD4x CO₂ and SHT4x humidity sensors, for example), so read them before you design your own box.

Radar (mmWave) sensors: plastic is fine, metal isn't

24 GHz and 60 GHz presence radars see through plastic, but the cover still affects range and field of view. TI's mmWave Radar Radome Design Guide and Infineon's radar cover guidance agree on the basics:

  • Keep the cover over the antenna flat, smooth and of even thickness, with no ribs, holes or text in the beam.
  • No metal: no metallic or "silk" paints, foil stickers, conductive or carbon-fibre-filled filaments in front of the antenna.
  • Thickness: the ideal wall is a whole number of half-wavelengths inside the plastic, t = n·c / (2·f·√εr). For 24 GHz and a PLA-like plastic (εr of about 2.7–3.0) the first half-wave thickness works out to roughly 3.6–3.8 mm. Printed plastics vary, so treat that as a starting point. A very thin window also works at 24 GHz because it's small compared with the wavelength. Our radar housings use a flat 1.0 mm radome made from solid top layers.
  • Mount it rigidly. A radome that rattles or flexes shows up as motion.

Whatever you print, test detection range with the lid closed before you rely on it.

IR, UV and laser sensors need an open window

  • PIR motion sensors see through their own Fresnel lens. Put the lens dome through a hole; don't cover it.
  • Infrared thermometers (e.g. MLX90614) measure long-wave infrared, which ordinary printed and clear plastics block. They need an open aperture.
  • UV sensors (UVA/UVB/UVC, UV index) need an open aperture too. Most clear plastics block much of the UVB and UVC.
  • Time-of-flight and LiDAR sensors can pick up reflections from a cover window as false targets. Use an open aperture, or follow the sensor maker's cover-window guidelines.
  • Light and colour sensors work best with an open aperture. A tinted or textured window changes the spectrum they see.

Quick picks

  • Indoor presence, CO₂, VOC or light box: PLA, a plain colour, open apertures for optical sensors.
  • Garage, shed or warm room: PETG.
  • Outdoors or in a sunny window: ASA (or PETG under cover), mounted shaded with cable entries facing down. A printed box isn't waterproof.
  • Radar: plain PLA or PETG, flat window, nothing metallic.

All our housing files are free on the 3D-printed housings page.

Note: This guide and our housing files are free recommendations for educational and informational purposes only. They come as-is, with no warranty of fit, safety or suitability, and you print, assemble, install and use them at your own risk, so check your printer, materials, wiring, heat and local codes yourself. Printed enclosures aren't certified for fire, electrical, outdoor, medical or life-safety use, and our sensor kits aren't safety devices or a substitute for certified smoke, CO or gas alarms. To the extent permitted by law, The Sensor Shop / American Data Analytics LLC isn't liable for damage, injury or loss from their use, and nothing here affects your statutory rights. Full DIY disclaimer.