Setting up the DHT22 to the ESP32 with the Arduino IDE
Temperature | Humidity
In this article, we will connect the DHT22 to the ESP32 chip. This means we should be able to tell the humidity and temperature within the location you have your DHT22 chip connect. So let’s get started.
What I will be utilizing in this article
I will be of course using an ESP32. The power is done via a USB cable from my pc to the board. I will also be utilizing a breadboard. https://amzn.to/3ppyVas
I will also be utilizing a DHT22 device which will be used to gather temperature and humidity data.
When you buy something using the retail links in the article, I may earn a small commission. (FTC Required Statement)
Install the DHT Libraries to Arduino IDE
In order to use the DHT22, we must install the libraries first.
- Go to Sketch > Manage Libraries > Library Manager
- Search for “DHT” and select the “DHT sensor library”. You can install it by click install at the bottom right. Make sure to “Install all” if asked. This will install the Adafruit Unified Sensor dependency for the DHT Sensor library. Close when done…