CO2, temperature, and humidity monitor using the SCD41 sensor on Raspberry Pi 4. Exposes metrics via Prometheus.
- Raspberry Pi 4
- Sensirion SCD41 via I2C
| Metric | Description |
|---|---|
co2_ppm |
CO2 level in PPM |
temperature_celsius |
Temperature in Celsius |
humidity_percent |
Relative humidity in percent |
Enable I2C on the Pi:
sudo raspi-config # Interface Options → I2C → EnableVerify i2c group GID (needed for compose):
getent group i2c | cut -d: -f3Update group_add in docker-compose.yml if it differs from 995.
# Build and run locally
docker compose up -d
# Or pull from GHCR
GITHUB_REPOSITORY_OWNER=just5ky docker compose up -d| Variable | Default | Description |
|---|---|---|
PROMETHEUS_PORT |
8000 |
Port to expose Prometheus metrics |
Multi-arch image (linux/arm64, linux/arm/v7) published to GHCR on every push to main and on version tags.
docker pull ghcr.io/just5ky/air-you-dying-for:latestpip install -r requirements.txt
python scd41_monitor.py