#include <DHT.h>
#define Type DHT22
int senspin = 2;
DHT HT(senspin,Type);
float humidity;
float tempF;
float tempC;
void setup() {
Serial.begin(9600);
HT.begin();
// delay(500);
// put your setup code here, to run once:
}
void loop() {
humidity = HT.readHumidity();
tempC = HT.readTemperature();
tempF = HT.readTemperature(true);
Serial.print("humidity =");
Serial.print(humidity);
Serial.print("temo in C =");
Serial.print(tempC);
Serial.print("temp in F =");
Serial.println(tempF);
delay(500);
// put your main code here, to run repeatedly:
}