#include <dht.h>
#define sensorPin 8
dht weather;
void setup() {
Serial.begin (9600);
}
void loop(){
int readData = weather.read22(sensorPin);
float temp = weather.temperature;
float humid = weather.humidity;
Serial.print("Temp: ");
Serial.print(temp);
Serial.print(" C. ");
Serial.print("Humidity: ");
Serial.print(humid);
Serial.print(" % ");
delay(1000);
}