#include <DHT.h>
#define DHTPIN 6
#define DHTT DHT22
DHT dht(DHTPIN, DHTT); //initi sensor for 16 mHz arduino
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.println("Humidity : ");
Serial.print(hum);
Serial.println("%");
Serial.println("\nTemperature : ");
Serial.print(temp);
Serial.println(" C \n----------\n");
//Serial.print
delay(1000);
}