#include dht DHT; void setup() { Serial.begin(9600); } void loop() { // read the // DHT11 on pin 2 int chk = DHT.read11(2); // write the temperature // to the Serial Monitor Serial.print("Temp: "); Serial.print(DHT.temperature); // '\t' puts a tab // between the values Serial.print(" °C\t"); // write the humidity // to the Serial Monitor Serial.print("Humidity: "); Serial.print(DHT.humidity); // println ends the line // and moves to the next one Serial.println(" %"); delay(1000); }