Engineering showcase

A classroom system with a visible chain of responsibility.

The architecture separates sensing, local decisions, storage and authorised sharing so the system can be tested, explained and improved one layer at a time.

Architecture map

Environment to authorised portal.

Data moves through a small number of explicit boundaries. The public website does not receive a live Pi address or classroom control endpoint.

ENVIRONMENTClassroom conditionsAir, temperature, humidity
SENSOR LAYERDHT22 + MQ arrayEight monitored channels
ACQUISITIONArduino UnoUSB serial packet
LOCAL INTELLIGENCERaspberry PiCalibration / filtering / baseline / safety / SQLite
Local dashboardLED + buzzerHistory
SECURE DATA SHARINGCloudflare layerAuthenticated authorised views
AUTHORISED PORTALSchool dashboardRole-aware classroom access

Layer 02 / Interpret

Raw readings become a state through checks.

raw readingvalidationsmoothingbaseline comparisonrate of changeconsecutive confirmationcorrelated behaviourclassroom state

Layer 03 / Store

History survives the internet.

Readings are persisted locally on the Pi so a reboot or an unavailable connection does not erase the evidence already collected.

timestamproommq2_ppm_eststate
2026-08-29 09:00:068A284SAFE
2026-08-29 09:00:078A289SAFE
2026-08-29 09:00:088A301ELEVATED
Conceptual record shape - sample values only

Layer 04 / Respond

Four states, with the reasoning attached.

01SAFE

Stable around baseline.

02ELEVATED

Minor sustained change.

03WARNING

Significant deterioration.

04DANGER

Confirmed hazardous pattern.

Layer 05 / Share

Why local-first?

Internet access changes what can be viewed remotely. It does not decide whether the classroom can sense, process, store or respond.

Internet available

Local monitoring + optional remote portal. Selected readings and status can be shared with authorised users.

Internet unavailable

Local acquisition + processing + history + classroom response continue on the Raspberry Pi.