To read a dht11 temperature and humidity sensor using an Arduino, you’ll need to use a library that simplifies communication with the sensor. Below is a simple Arduino sketch to read data from a dht11 sensor and display the temperature and humidity on the Serial Monitor. Components Needed: Aliexpress Item Image Cost ($USD) dht11 sensor...
I believe the DHT22 is also much better than the DHT11