DHT11 interfacing with Arduino UNO.
Dht11>>> HUMIDITY AND TEMPERATURE SENSOR.
DHT11 is a quit slow but still efficient sensor for taking data which performs the function of basic analog data exchange. There is a small chip inside this sensor which performs the function of analog to digital to analog conversion and gives the results for temperature as well as for humidity in digital form. This digital signal can be read easily through any micro-controller.
Now Coming to interfacing with Arduino>>>>
(For information about Arduino, kindly go with previous post in this grp)
dht DHT; //Creating sensor object
#define DHT11_PIN 2 // Sensor is connected to Arduino pin 2
Serial.begin(9600); //setting baud rate
Serial.println(" || Welcome to Temperarue and Humidity Detector ||");
void loop()//method used to run the code repeatedly
int chk = DHT.read11(DHT11_PIN); //Reading data from sensor
Serial.print(" Humidity = ");//prints on the serial monitor
Serial.print(DHT.humidity);// prints obtained humidity on serial port
Serial.print(" \tTemperature = ");//prints on the serial monitor
Serial.print(DHT.temperature, 1);//prints obtained temperature on serial port
delay(2000);//adding the delay of 2 seconds
Now Dht11 Characteristics>>