Skip to content

IoT · Live data

Pi Sensors.

A Raspberry Pi on my office shelf breathes the same air I do. It reads carbon monoxide and temperature every five seconds and sends them here, so this page is the real room, not a simulation. Wired probes add the greenhouse next door, up near the roof and down near the floor, and the weather outside.

Office · right now

—

—ppm

Office CO

—ppm

Office CO₂

—°F

Office Temp

Waiting for the Pi…

Greenhouse & outside · right now

Sensors not installed yet

—°F

Greenhouse Upper (near the roof)

—°F

Greenhouse Lower (near the floor)

—°F

Outside Temp

—%

Outside Humidity

How the greenhouse sensors will be wired: DS18B20 probes on the Pi’s 1-Wire bus ▼
Wiring diagram: a Raspberry Pi 4 connected to a DS18B20 temperature sensor. 3.3 V (pin 1) to VDD, GPIO4 (pin 7) to DQ with a 4.7 kΩ pull-up resistor to 3.3 V, and ground (pin 6) to GND, above an example temperature chart.
3.3 V to VDD, GPIO4 to DQ with a 4.7 kΩ pull-up, ground to GND. The chart in the diagram is an example, not a reading.

Last 24 hours

Temperatures

Office Temp (°F) Greenhouse Upper (°F) Greenhouse Lower (°F) Outside Temp (°F) Outside Humidity (%, right)

Office air

Office CO (ppm, left) CO peak in each period Office CO₂ (ppm, right)

01

Sensors

DFRobot SEN0466 CO cell, Sensirion SCD-41 CO₂, DS18B20 probes in the greenhouse and an AM2302 outside, all wired to the Pi

02

Raspberry Pi

Python logger averages each 5 minutes into SQLite and runs the warn / alarm logic

03

Push

Every 5 minutes the Pi asks this site what it already has and sends only what’s new, with a bearer token

04

Laravel

Validates and stores the rows, then buckets them by hour or day for the chart you’re looking at

The site can’t reach into the office network, so the Pi does the calling. If the Pi or the network goes down, it catches up the missed readings the next time it gets through, and the chart fills in.