The DHT11 is a low-cost weather sensor that contains a capacitive humidity sensor and a thermistor for temperature. It communicates this information over a single data line. To communicate with the chip, we will use two libraries: Adafruit Unified Sensor Library and Adafruit DHT Sensor Library. These libraries support reading humidity, reading temperature (in F and C), and computing the heat index.
Pinout
Code Example: https://create.arduino.cc/editor/mjdargen_ravens/8ced4c54-7f36-453b-a7c5-8988e72277c6/preview