Wire the DHT22 to the ESP32
Connect power, ground, and the data pin to a GPIO input.
Read a DHT22 sensor and publish readings over MQTT — the smallest complete IoT loop, end to end. Free, no purchase required.
This is the smallest complete IoT loop you can build: a sensor reads real-world values, a microcontroller formats them, and an MQTT broker distributes them to anything that subscribes. No cloud account, no dashboard service — just the loop.
It's the starter we point people to before they take on the full Edge AI Pipeline course, because it teaches the telemetry layer that every later project builds on.
Follow the steps in order, verify each checkpoint, and finish with a working project you can explain and extend.
Connect power, ground, and the data pin to a GPIO input.
Install the DHT and PubSubClient libraries, then flash the read-and-publish sketch.
Start Mosquitto on your laptop and confirm the ESP32 connects.
Subscribe to the topic and watch real sensor readings arrive in real time.
Use this project as a concrete piece of your embedded, IoT, or edge AI portfolio.
Start Building →