Skip to content

Sensors

Services
Sensors

Sensors

Image: Sensors (showing device components including sensors).

The Sensors service reads onboard sensors (e.g. ambient light, temperature on Ubo Pod) and reports readings to the store. The home screen or other UI can show temperature and light level.

What you see

  • State (SensorsState) — List of SensorState (type, value, unit, etc.).
  • ActionsSensorsReportReadingAction — updates sensor values in state.
  • Implementationubo_app/services/040-sensors/: reducer, setup, ubo_handle; uses Adafruit CircuitPython drivers (e.g. PCT2075, VEML7700) on RPi. Non-RPi may have mocks or no sensors.