Design a gadget
Gadgets › CO2 monitor with screen and alarm

CO2 monitor with screen and alarm

Shows CO2 in parts per million on a small OLED and beeps when a room gets stuffy. Sends readings to Home Assistant.

Better airESPHome projectsESP32 projects

Build guideOpen and change it

Parts

ESP32-C3 SuperMiniThe brain: Wi-Fi, Bluetooth, USB-CAmazoneBay
SCD41 CO2 sensorPicked because the wish says “co2”AmazoneBay
0.96 in OLED display (SSD1306)Picked because the wish says “screen”AmazoneBay
Active buzzer modulePicked because the wish says “buzzer”AmazoneBay

Circuit board

Board71 × 90 mm, 2 layers
Tracks12
Case78 × 97 × 34 mm
Plastic52.6 cm³
U1 ESP32-C3 USB UP01234567891020215VG3V3J1 SCD413V3 GND SCL SDAJ2 SSD1306GND 3V3 SCL SDAJ3 BUZZER3V3 GPIO GNDCIRCUITWISH.COM

Gold is the top copper and blue is the bottom. Every module plugs into a labelled header, so there is no fine-pitch soldering.

Downloads

Gerbers (.zip)Case tray (.stl)Case lid (.stl)Firmware (.yaml)

ESPHome firmware

# Generated by Circuit Wish. Flash with ESPHome (esphome.io): esphome run co2-monitor-with-screen.yaml
esphome:
  name: co2-monitor-with-screen

esp32:
  board: esp32-c3-devkitm-1
  framework:
    type: esp-idf

logger:
api:
ota:
  - platform: esphome
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  ap:
    ssid: "co2-monitor-with-screen setup"
captive_portal:

i2c:
  sda: GPIO6
  scl: GPIO7

sensor:
  - platform: scd4x
    co2:
      name: "CO2 monitor with screen and alarm CO2"
    temperature:
      name: "CO2 monitor with screen and alarm SCD41 Temperature"
    humidity:
      name: "CO2 monitor with screen and alarm SCD41 Humidity"

switch:
  - platform: gpio
    pin: GPIO10
    name: "CO2 monitor with screen and alarm Buzzer"

font:
  - file: "gfonts://Roboto"
    id: big
    size: 20

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.print(0, 0, id(big), "CO2 monitor ");
      // add "id: reading" to a sensor above, then: it.printf(0, 30, id(big), "%.0f", id(reading).state);

Related gadgets

Plant watering controllerMeasures soil moisture and switches a small pump through a relay when the pot dries out.
Capacitive soil moisture sensor v1.21-channel 5 V relay
Room presence sensormmWave radar that sees people even when they sit still, plus temperature, humidity and light level.
BME280 temperature, humidity, pressureBH1750 lightLD2410C mmWave presence radar
Garage door sensor with LED stripKnows whether the garage door is open, lights an LED strip, and has a button to trigger a scene.
WS2812 LED strip connectorPush buttonReed switch / door contact
Aquarium heater controllerA waterproof probe in the tank and a relay that keeps the heater on or off around your set point.
DS18B20 waterproof temperature probe1-channel 5 V relay
Weather station with displayTemperature, humidity, pressure and light level, shown on a small screen and logged in Home Assistant.
BME280 temperature, humidity, pressureBH1750 light0.96 in OLED display
Smart doorbell buttonA wired doorbell button with a chime, a motion sensor and an LED ring for the porch.
PIR motionWS2812 LED strip connectorActive buzzerPush button

Want something slightly different?

Describe it in a sentence. Circuit Wish picks the parts, writes the firmware, routes the board and sizes the case.

Design a gadget