#include <DHT.h>;
#define DHTPIN 4
#define DHTTYPE DHT22
DHT dht(DHTPIN, DHTTYPE);
float hum;
float temp;
void setup()
{
Serial.begin(9600);
Serial.println(F("DHT22 example"));
dht.begin();
}
void loop()
{
delay(2000);
// put your main code here, to run repeatedly:
hum=dht.readHumidity();
temp=dht.readTemperature();
Serial.print("Humidity:");
Serial.print(hum);
Serial.print("%,Temp:");
Serial.print(temp);
Serial.print("celsius");
delay(10000);
}