05 / Observe the physical world

Sensor Hub

A dependable local hub that samples several sensors and exposes clean, timestamped readings.

DifficultyStarter
TimeAn afternoon
Boards2 recommended

What you’ll build

A reusable sensing node with health telemetry, local buffering, and a simple data contract.

01

Architecture

Three parts.
One working loop.

01

Sample

Independent tasks read sensors on explicit schedules.

02

Normalize

Measurements share units, timestamps, and health fields.

03

Publish

A transport layer sends batches and buffers failures.

02

Build stack

Hardware

  • Development board
  • One or more sensors
  • Jumper wires or expansion board
  • USB power

Software

  • ESP-IDF
  • Sensor drivers
  • FreeRTOS queues
  • CBOR or JSON
  • HTTP or MQTT

Capabilities

  • I²C or SPI
  • Wi-Fi
  • Timers
  • Nonvolatile storage
  • Status output

Constraints

  • Avoid blocking sensor tasks
  • Include calibration metadata
  • Define behavior when a sensor disappears

Recommended boards

Compare boards

03 / Build with AI

Give Codex
a better brief.

Choose a target board and copy a prompt grounded in the project’s hardware, constraints, and architecture.

Includes the goal, hardware capabilities, stack, constraints, architecture, and a safe first milestone.