Posts

Rust for IoT: Building a Secure ESP32 Weather Sensor with MQTT, TLS, and OTA Updates

During downtime between freelance projects, I often use the time to learn new things. This time, I explored the world of IoT and built a weather sensor with an ESP32 board, then decided to document the experience. The sensor reads temperature, humidity, pressure, co2 and air quality data and sends it securely using MQTT over TLS. It also supports over-the-air (OTA) firmware upgrades. New versions of firmware are served by a minimal OTA backend that pulls versioned binaries from an OCI registry. This post captures the engineering behind it.