#include "DHT.h"
#define type DHT22
int senspin=4;
DHT HT(senspin,type);
float humidity;
float temp_c;
float temp_f;
void setup() {
Serial.begin(9600);
HT.begin();
delay(500);
// put your setup code here, to run once:
}
void loop() {
humidity=HT.readHumidity();
temp_c=HT.readTemperature();
temp_f=HT.readTemperature(true);
Serial.print("humudity : ");
Serial.print(humidity);
Serial.print(" ");
Serial.print("temperature ");
Serial.print(temp_c);
Serial.print(" C ");
Serial.print(temp_f);
Serial.println(" F ");
delay(1000);
// put your main code here, to run repeatedly:
}