#include<DHT.h>//step1: Include Library
int DthPin=11;//Step2: assign pin no.
DHT dht(DthPin,DHT11);//S3:Class(Library name) variable(pin name, Type of DHT)
void setup() {
// put your setup code here, to run once:
dht.begin();
Serial.begin(9600);//Buad rate: Communication rate
}
/*Buad rate: rate at which the number of signal elements passes
through a transmission medium per second.
*/
void loop() {
// put your main code here, to run repeatedly:
// readTemperature(),readHumidity() are the library Function of DHt Library
float temp=dht.readTemperature();//variable.memberFunction()
float humd=dht.readHumidity();
Serial.print("Temperature of this room is: ");
Serial.print(temp);
Serial.println("deg.Celsius");
Serial.print("humidity of this room is: ");
Serial.print(humd);
delay(1000);
}