#include <DHT.h>
#define DHTPIN 6
#define DHTTYPE DHT22
DHT dht(DHTPIN,DHTTYPE);
float hum;
float temp;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
dht.begin();
}
void loop() {
// put your main code here, to run repeatedly:
hum=dht.readHumidity();
temp=dht.readTemperature();
Serial.print("humidity");
Serial.println(hum);
Serial.print("temperature");
Serial.println(temp);
delay(1000);
}