Skip to main content
100%

Gist 0df93cdbb2b3e218cfe40434c66d98e2

✓ Published0🌍 Public
IIoTeacher
Last edited Oct 14, 2025
Created on Oct 13, 2025

This example demonstrates a complete IoT telemetry pipeline where a micro:bit V2 sends temperature and light readings over USB serial to a Python gateway, which forwards them via MQTT to an AWS-hosted Mosquitto broker. The flow continues through Telegraf into InfluxDB, with Prometheus and Grafana for monitoring and visualization. The code uses MicroPython’s `temperature()` and `display.read_light_level()`, plus `pyserial` and `paho-mqtt` for serial communication and MQTT publishing. The architecture is illustrated with a Mermaid flowchart, and the gateway enriches JSON payloads with metadata before transmission.

AI-generated description

Similar vizzes