#include <DHT.h>
DHT th(13,DHT22);
void setup() {
// put your setup code here, to run once:
th.begin();
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
float h = th.readHumidity();
float t = th.readTemperature();
Serial.print("Humidity - ");
Serial.print(h);
Serial.print("%");
Serial.print("\tTemperature - ");
Serial.print(t);
Serial.print("*C");
delay(1000);
Serial.print("\n");
}