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…