SenseAir S8-4B + GY-21 + D1-Mini air quality sensor enclosure

Compact enclosure for a SenseAir S8-4B CO2 sensor, GY-21 (HTU21) temperature and humidity sensor, and a D1 Mini.
0
17
0
357
updated March 12, 2024

Description

PDF

This is a simple enclosure for an ESPHome-based air quality sensor, consisting of:

  • SenseAir S8-4B CO2 sensor (including a baseline calibration pushbutton)
    • I used the -4B variant as that is what I could get at a good price from Aliexpress. Conveniently it includes mounting holes on the board.
    • Software calibration doesn't work for me on this sensor, hence the button. Wire it to S1 pins. Place the sensor in fresh air (outdoors or near a window that's been open for a while) and hold the button for over 30 seconds. The reading should end up close to 400ppm, then the calibration is good.
  • GY-21 (HTU21D) temperature and humidity sensor
  • D1 Mini board

Both parts print on their top/bottom surfaces without supports. Two halves snap together with a friction fit.

Sensors are mounted with M3 screws that thread directly into the printed part. D1-Mini should be secured with double-sided tape or similar. A 6x6mm pushbutton is pressed into its fitting on the side, and additionally held in place by the head of one of the S8 screws. 

You can wire the sensors using soldered pins and patch wires as shown, or (recommended) directly solder wires to the boards and make the inside a lot roomier and easier to put together.

ESPHome config for the assembly as shown goes something like: https://gist.github.com/olexs/a8d2ab7aeee72f450758e6aadc569097

Tags



Model origin

The author marked this model as their own original creation.

License