#include <DHT.h>
DHT dht(2,DHT11); //DHT11 on pin 2
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:
float t = dht.readTemperature();
Serial.print("Temp:");
Serial.print(t);
Serial.println("C");
delay(2000);
}