Project 20 · The Build Log

Know What You’re Breathing: An Indoor Air-Quality Monitor

Intermediate ~2 hours ~$130 in parts, est.

Know What You're Breathing: An Indoor Air-Quality Monitor

Disclosure: As an Amazon Associate I earn from qualifying purchases.

Every afternoon, around three o’clock, the same room feels different: heavier, slower, harder to think in. Open a window and it clears in minutes. That is not imagination — it is carbon dioxide, quietly climbing while the door stays shut. This build puts a number on it: a Pi Zero 2 W, two real sensors, one screen.

Get the full kit → jumps to the parts list. If you are starting from zero, read the starter-kit guide first. Good companions: the weather station (Project 08), which watches the air outside, and the e-ink dashboard (Project 13), the natural home for these readings.

What the Sensors Actually Measure

Two different things, and the difference is the whole point. Carbon dioxide comes from breathing: every person in a closed room adds to it, and the number climbs all afternoon. Outdoor air sits near 420 parts per million. A room that feels fine is usually under 800. Around 1,000 it starts to feel stuffy, and past 1,500 most people feel the fog — slower thinking, the three-o’clock slump.

The second sensor counts particles: dust, smoke, and fine haze from cooking and candles. It reports PM2.5 — particles smaller than 2.5 microns — in micrograms per cubic meter. Under about 12 is clean air. Frying dinner can push a kitchen past 100 in minutes, and the number falls again once the fan runs and the window opens. Watching that spike fall is the moment this build earns its shelf.

Both sensors measure what they claim to measure. The CO₂ sensor shines infrared light through the air and watches how much is absorbed. The particle sensor counts flashes of scattered laser light. Cheap boards claim the same while sniffing other gases and estimating — they are not measuring the same thing.

What You’ll Need

Total: ~$130 in parts, est. (November 2026). You will also need a breadboard, jumper wires, and a stand — the sensors need open air.

Step 1 — Wire It Up (40 Minutes)

The wiring is two independent conversations. The SCD-41 talks I2C: four wires — power, ground, SDA, SCL — and it shares that bus happily with the display if the display uses I2C too. The PMS5003 talks serial: transmit, receive, power, ground. The Zero 2 W has both, so nothing fights. Start on one breadboard; a tidy case comes later.

Mount the sensors so air can actually reach them. The SCD-41 has small vents on its case; the PMS5003 has an inlet and an outlet for its fan. Both need to sit at the edge of the board, not buried under the Pi or inside a closed box. A sensor in a sealed case measures the air inside the case, which is not the room. Install the sensor libraries — Sensirion publishes a Python driver for the SCD-41, and small open libraries read the PMS5003. No soldering needed.

Step 2 — The Fresh-Air Baseline (30 Minutes)

Start with the CO₂ sensor alone. Read it in the room, then carry the whole breadboard outside — or open every window for ten minutes — and read it again. Outdoor air is near 420 ppm, and a healthy sensor should settle close to that in fresh air. That outside number is your anchor: the only calibration this build needs, and it is free.

There is a catch worth knowing now. The SCD-41 quietly recalibrates itself over days, assuming the lowest reading it sees is fresh air at 400 ppm. That works if the box sees a ventilated room or an open window regularly. If it lives in a room that is never aired out, the baseline drifts and the numbers slowly lie. So let the box taste fresh air every few days. Then add the particle sensor: run its fan a minute, cook something, and watch PM2.5 jump and fall back. A flat zero means the fan is not running or the inlet is blocked.

Step 3 — Log It and Learn the Room (30 Minutes)

A number on a screen is a novelty; a week of numbers is knowledge. A short Python script reads both sensors once a minute into a CSV file. The same script draws the screen: big CO₂ number, smaller PM2.5, one-word verdict. Rules at the top of the code: under 800 Fresh, 800–1,200 Stuffy, over 1,200 Open a window.

After three days, plot the log and the room’s pattern appears. CO₂ climbs through the evening and falls overnight if a window is cracked. It spikes during a homework session with the door closed. PM2.5 spikes at dinner and recovers. None of this surprises once graphed — only how regular it is, and how little fixes it: a window, a fan, a door left open an inch. Serve a tiny status page on your home network: current readings, today’s peak, the week’s chart. No cloud, no account — the data never leaves the house.

Step 4 — Put It Where the Air Is (20 Minutes)

Placement decides whether the numbers mean anything. Breathing height — about a meter off the floor, on a shelf or a side table — not on the floor, not on top of a radiator, not behind the curtains. Keep it away from windows and doors, where a draught fakes a fresh reading, and from the kitchen, where every meal looks like a pollution event. The living room or bedroom is where it belongs.

Run it for a week and watch the log before changing anything. A bedroom reading 1,600 ppm by morning with the door closed is normal — and the fix is a cracked window or a door left ajar, not a gadget. If a reading never moves, suspect the sensor, not the room: check the fresh-air baseline again.

What NOT to Buy

The Total, Honestly

Build It This Weekend

Wire the two sensors, anchor the CO₂ reading in fresh air, log a week, and let the graph tell you when the room needs a window. The afternoon slump becomes a number — and a number has a fix. Tomorrow’s build trades air for sawdust: a bartop arcade cabinet, real joystick, real buttons, two-player bragging rights.

Where the series goes next: the e-ink dashboard (Project 13) is the natural home for these readings, and the full project library holds everything built so far.