Search models, users, collections, and posts

ESP32 box for SCD40

Print Profile(1)

All
X1 Carbon
X1E
P2S
H2D Pro
P1P
X1
A1 mini
H2D
P1S
H2S
H2C
A1
X2D
A2L

0.2mm layer, 2 walls, 15% infill
0.2mm layer, 2 walls, 15% infill
Designer
28 min
1 plate

Open in Bambu Studio
Boost
2
3
0
0
16
9
Released 

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"

Comment & Rating (0)

(0/1000)

License

This user content is licensed under a Standard Digital File 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.