SPS30 Outdoor Enclosure - Particle Sensor Housing
We calculate the final price from your selected file. You review and accept it before payment.
Saved on this device.
SPS30 Outdoor Enclosure (Insect-Proof & Aerodynamic & Weatherproof)
- Rating
- 0 / 5
- Likes
- 1
- Downloads
- 2
- Makes
- 0
- Views
- 3
- Reviews
- 0
Updated at source:
Model information
- Source
- Printables
- Category
- Electronics
- License
- Creative Commons — Attribution — Noncommercial — Share Alike
SPS30 Outdoor Enclosure (Insect-Proof & Aerodynamic & Weatherproof)
This project offers a 3D-printed outdoor enclosure for the Sensirion SPS30 particulate matter sensor. It was specifically designed to protect the sensor from the elements without compromising the fluid dynamics critical for accurate measurements.
3D Printing & File Guide
The project is divided into six components. Depending on your needs (with or without an additional climate sensor), choose the corresponding STL files to print:
Inner Core (Choose one variant):
Variant A: With Climate / Gas Sensor Chamber
(Ideal for multi-sensor setups using e.g., Sensirion SHT4x / SGP4x / SCD4x, or Bosch BME280 / BME680 / BME688, or ScioSense ENS160 / CCS811)
SPS30 Outdoor Enclosure - Inner-Base - Housing with Sensor-Slits.stl - (Print 1x)
SPS30 Outdoor Enclosure - Inner-Base - Holder with Sensor-Slits.stl - (Print 1x)
Variant B: Without Climate Sensor (Closed)
SPS30 Outdoor Enclosure - Inner-Base - Housing without Sensor-Slits.stl - (Print 1x)
SPS30 Outdoor Enclosure - Inner-Base - Holder without Sensor-Slits.stl - (Print 1x)
Outer Enclosure & Frame (Required):
SPS30 Outdoor Enclosure - Weather-Protection - Outdoor-Housing.stl - (Print 1x)
SPS30 Outdoor Enclosure - Wall-Mount - Profil-Rail.stl - (Print 2x)
SPS30 Outdoor Enclosure - Wall-Mount - Frame-Rail.stl - (Print 2x)
Wall Mounting Bracket (Optional, for offset wall mount):
SPS30 Outdoor Enclosure - Wall-Mount - Wall-Bracket.stl - (Print 2x)
Update v1.0.5:
Added 1.5mm pilot holes to Part "Wall-Mount - Profil-Rail".
Acts as a perfect screw guide when securing the Profil-Rail to the four screw bosses of Part "Frame-Rail".
This significantly reduces driving resistance and prevents the frame's dovetail joints from pushing apart during assembly.
Hardware Features & Assembly
The design is based on a modular dovetail rail system and offers maximum flexibility during assembly:
Insect-proof Sandwich Design:
The core consists of an inner base unit to house the SPS30 (including an ESP32 and optional hardware) and an inner divider plate acting as a base mount. When screwing these two circular inner units together, a piece of standard fly screen (mesh/gauze) can simply be clamped between them to act as a gasket for easy insect protection.
Important: Cut out the mesh in the area of the rectangular exhaust vent to prevent back pressure! This keeps insects out, while allowing the SHT4x or BME280 (if installed) and the SPS30 to draw clean outside air.
Optional Climate / Gas Sensor Chamber:
The inner base is available in two STL variants.
One variant features small ventilation slots in a separated quarter-chamber. This space is ideal to house an additional climate sensor (such as an Sensirion SHT40 / SHT41 / SHT45 or Bosch BME280) for later software-based humidity compensation. Advanced users can also use this chamber to integrate a multi-sensor setup (e.g., combining the SHT4x with a Sensirion SGP40 /SGP41 VOC/NOx sensor) directly alongside the ESP32.
If you don't need these extra sensors, simply choose the completely closed STL variant.
Flexible Wall Mounting & Alignment:
The system offers two mounting options. The Wall-Mount - Profil-Rail can be screwed directly flat against the wall using the universal hole pattern of the wall rails (the middle, double-chamfered hole is sufficient for this). Alternatively, you can use the included Wall-Mount Brackets (forks). These lock the frame flush against the cross struts and ensure sufficient distance from the house wall.
Alignment tip: When using the Wall-Mount Brackets (forks), the air inlet of the enclosure should ideally face forward—away from the wall—to ensure an optimal, undisturbed airflow.
Required Hardware (Screws)
The goal of this design was minimal hardware usage. No additional melt-in threads (heat-set inserts) are required, the screws bite directly into the tough plastic.
You will need:
2x small screws (ideal: pan head / button head): To firmly connect the inner base unit and the divider plate (the sandwich).
4x screws (e.g., 3.5 mm or 4.0 mm wood/plastic screws): To attach the outer wall rails to the screw bosses of the wall-mount brackets.
2x countersunk screws (e.g., 4.0 mm): For the final attachment of the wall brackets (or wall rails) to your house wall.
Important Warning: Dangerous Connection Cables (AliExpress etc.)
An important lesson from the field: Many Far Eastern sellers ship original SPS30 sensors (Version 2.2) with completely incorrectly pinned, dangerous connection cables!
If 5V is accidentally connected to Pin 2 (red) and GND to Pin 1 (black), the SPS30 will be destroyed immediately!
Often, the following confusing cable is included (see reference pictures):
Pin 1 (black) = VDD 5V (Danger: Black is usually GND!)
Pin 2 (red) = SDA I2C (3.3V) (Danger: Red is usually VDD!)
Pin 3 (white) = SCL I2C (3.3V)
Pin 4 (yellow) = SEL
Pin 5 (orange) = GND
Urgent Recommendation: To be safe, manually repin the cable before installation to rule out any mix-ups later:
Pin 1 (red) = VDD 5V
Pin 2 (orange) = SDA I2C (3.3V)
Pin 3 (white) = SCL I2C (3.3V)
Pin 4 (yellow) = SEL
Pin 5 (black) = GND
Filament & Tolerances (FDM Printing)
The enclosure utilizes precise mechanical fits (zero tolerance on the cross struts, 0.2 mm clearance on the dovetail grooves). The provided STL/3MF files are a carefully calculated compromise for common outdoor filaments:
PCTG & PETG: The enclosure is optimized for these materials. Since they shrink only slightly, you will experience a perfect, "suction-like" press-fit during assembly (especially when sliding on the outer trumpet cover). Gaps are minimized, maximizing insect protection.
ASA: If you need maximum UV resistance, go for ASA. Since ASA shrinks a bit more when cooling (approx. 0.5 - 0.8%), the inner dimensions will be slightly tighter. The tolerances in the model are chosen so that the system can still be easily assembled with ASA without mechanical binding.
Important Note Upfront: Disclaimer & Outdoor Operation
The Sensirion SPS30 is explicitly designed by the manufacturer as an indoor-only sensor. While this 3D-printed DIY outdoor enclosure offers optimized, constructive weather protection (protection from direct rain, splash water, and solar radiation), it cannot bypass the physical limits of the sensor. Outdoor use is strictly at your own risk. No warranty or liability is assumed for any damage to the SPS30, including the ESP32 and optional hardware (e.g., due to extreme temperatures, condensation, insects, or corrosion).
The Physical Weaknesses of the SPS30 in Outdoor Environments
Anyone using the Sensirion SPS30 for citizen science projects or outdoor weather stations should be aware of the following hardware limitations to interpret the measured data correctly:
1. The "Blind Spot" for Coarse Dust (PM4.0 and PM10)
The SPS30 is an excellent and highly precise sensor for extremely fine dust (PM1.0 and PM2.5). However, for larger particles, the laser scattering technology of this low-cost sensor reaches its physical limits. A renowned laboratory study (Kuula et al., 2020) - https://amt.copernicus.org/articles/13/2413/2020/ - demonstrated that the internal measurement channels (bins) of the SPS30 react virtually identically for PM2.5, PM4.0, and PM10, and the valid detection range drops off massively starting at approx. 1.3 µm.
This means: The sensor does not physically measure large PM10 particles (like pollen or desert dust) but merely estimates these values using an internal algorithm. In practice, this often results in the sensor outputting exactly identical values for PM2.5, PM4.0, and PM10. Source: [ https://amt.copernicus.org/articles/13/2413/2020/amt-13-2413-2020-supplement.pdf]
2. The Missed Opportunity of Sensor Fusion (Omron B5W-LD0101)
To solve the PM10 problem, sensor fusion would theoretically be ideal. The aforementioned lab study identified the Omron B5W-LD0101 as one of the few sensors in this price segment that can cleanly and physically separate coarse particles (> 3.2 µm). A combination of the SPS30 (for fine dust) and Omron (for coarse dust) would be the perfect outdoor setup.
The problem: Omron has unfortunately completely discontinued the production of this thermal convection sensor (End of Life). It is practically no longer available on the market, which is why we have to work with the limitations of the SPS30.
3. Hygroscopic Particle Growth (The Fog Trap)
An often-forgotten problem in outdoor use: Optical sensors like the SPS30 are extremely susceptible to high humidity. The humidity problem: Starting at a relative humidity of approx. 70–80%, water vapor attaches itself to the fine dust grains (hygroscopic growth). The particles swell up, the laser detects huge shadows, and the sensor falsely reports massive particulate matter peaks, even though it's actually just foggy or rainy.
Important Note on Temperature Measurement: The climate sensor installed internally (in the optional slotted chamber) is intended solely as an auxiliary sensor for humidity compensation of the SPS30 (or to feed the internal heater compensation of an SGP40 / SGP41, if installed). The compact design of this enclosure does not offer sufficient radiation shielding against direct sunlight.
The measured temperature values are therefore not suitable for precise weather observations. If you need highly precise, radiation-shielded temperature and humidity readings, check out my other project: TRIDIX Screen - Modular 3-Layer Double Helix Radiation Shield .
The Solution: Software Compensation (Smart Home Middleware)
Since the hardware (without the Omron sensor) cannot deliver true PM10 values and overmodulates in fog, I strongly recommend not uploading the raw data from the SPS30 uncorrected to the internet (e.g., to Sensor.Community). Instead, a scientifically sound software compensation can be implemented as an intermediate layer in systems like Home Assistant (via template sensors) - use at your own risk:
Humidity Compensation: Always combine the SPS30 with an outdoor climate sensor (e.g., SHT4x or BME280). If the humidity reaches values above 70%, a linear or polynomial throttling factor is applied to the particulate matter values to calculate out the "fog false measurements".
Dynamic PM4/PM10 Scaling: Since the SPS30 differentiates fine particles (PM1.0 and PM2.5) very precisely, the ratio of these two values can be used to deduce whether the air currently contains fine smoke or coarse road dust.
The Math: Using a dynamic slope (based on European average mass distributions, where PM2.5 often accounts for approx. 70% of the PM10 mass), the PM4.0 and PM10 values can be extrapolated plausibly and organically from the PM2.5 value. The result is visually and atmospherically realistic curves that fix the identical "sticking" of the raw values.
Happy printing, and enjoy your highly precise weather data!