Simple Temperature Monitoring With DHT22 & Arduino Components need: Arduino UNO *1 DHT22 Temperature Sensor *1 Breadboard *1 Jumper Wires .
About this project This is very simple and small post but always simple and small things make smart and enterprise products. Any way it’s a program from that i can check my room temperature and humidity instead of watching from small devices. We will use DHT22 Temperature and Humidity sensor with Arduino UNO R3 and getting it's data from Arduino Serial Monitor. Before i go to next step i think i need to tell you some thing about DHT22.
First Pin is a VCC connect it to 5V. Second Pin is Data Pin Connect it to Digital Pin 7. Third Pin is called NC but i don't know why it's their i did not used it.
Code: /* How to use the DHT-22 sensor with Arduino uno Temperature and humidity sensor */ //Libraries #include
void setup() { Serial.begin(9600); dht.begin(); } void loop() { delay(2000); //Read data and store it to variables hum and temp hum = dht.readHumidity(); temp= dht.readTemperature(); //Print temp and humidity values to serial monitor Serial.print("Humidity: "); Serial.print(hum); Serial.print(" %, Temp: "); Serial.print(temp); Serial.println(" Celsius"); delay(10000); //Delay 2 sec.