We use the DHT22 module as a sensor device for our ESP32 board. We have to use similar hardware wiring from the dhtdemo project, which you can read about in Chapter 2, Making Visual Data and Animation on an LCD.
Next, we should register our IoT device on AWS IoT.