This project uses DHT11 sensor module to get environment temperature and humidity and show them in serial monitor window.
Step 1: connect DHT11 sensor to Arduino as per following pin map table:
|DHT11 Pin||Arduino Pin|
Step 2: Download DHT driver library from http://osoyoo.com/wp-content/uploads/samplecode/DHT.zip,unzip the file,
move the DHT folder to Arduino IDE library sub-folder
Step 3: Download sketch code and load it into Arduino IDE.
After running above code, open serial terminal upright corner of Arduino IDE, you will see temperature and humidity data as following video: