Connecting the DHT11 is simple, as you only need three cables. Use the following diagram as a guide for the setup.
Make sure once more that you have connected all cables correctly. In the next lesson, you’ll first learn how to install the appropriate library for the sensor in the Arduino IDE.
After that, we’ll continue with measuring temperature and humidity. 🙂
Note: If your DHT11 has four pins, please connect it as follows:
In this diagram, the sensor is connected to pin 7. For the upcoming sketch, please use pin 4.