ESP32 box for SCD40
Print Profile(1)

Description
Custom ESP32 & SCD40 Enclosure
This custom-designed enclosure houses both an ESP32 development board and the SCD40 CO₂ sensor in a single compact box. The design allows secure mounting of both components while maintaining proper airflow for accurate CO₂, temperature, and humidity measurements from the SCD40 sensor.
The enclosure includes a dedicated USB power input, allowing the ESP32 to be powered directly via USB for easy setup and continuous operation. Openings are provided for sensor exposure, USB access, and cable management, ensuring reliable performance and clean installation.
This all-in-one box is ideal for air quality monitoring projects for Home Assistant and EspHome.
Code for ESPHOME
i2c:
sda: 4 # pin 21 for an ESP32
scl: 5 # pin 22 for an ESP32
# Sensors definitions
sensor:
- platform: scd4x
co2:
name: "SCD40 CO2"
temperature:
name: "CO2 temperature"
humidity:
name: "CO2 humidity"
License
You shall not share, sub-license, sell, rent, host, transfer, or distribute in any way the digital or 3D printed versions of this object, nor any other derivative work of this object in its digital or physical format (including - but not limited to - remixes of this object, and hosting on other digital platforms). The objects may not be used without permission in any way whatsoever in which you charge money, or collect fees.










Comment & Rating (0)