All packs

Health

Air quality monitor

Shows how stuffy a room is. The light is green when the air is fresh, yellow when it is time to open a window, and red when it is stale.

  • Hard
  • about 60 min
  • ESP32-S3
  • 7 parts
  • 12 wires
  • 71 lines of code

ESP32 packs are built on real parts: the simulator runs Arduino Uno circuits only.

Idea

The sensor does not count CO₂ molecules. It measures fumes and estimates CO₂ from them, so treat the number as a guide for when to air the room, not as a laboratory reading.

What you learn

Two I2C devices on one bus, thresholds, and mixing colour with three PWM outputs.

How it works

  1. input

    SGP30

  2. decides

    ESP32-S3

  3. output

    OLED 0.96 in

    RGB LED

Powered with 5 V through the board's USB-C port.

A reference design. The sketch is compiled with the real ESP32 toolchain, and its pins are checked against the wiring table automatically. It has not yet been built and tested on real parts by us, so wire it on the bench and run the checks before you build it into a case. Real modules vary: follow the labels printed on yours, not their position in the picture.