You are on page 1of 1

#include

dht11 DHT11;
#define DHT11PIN 3
void setup()
{
Serial.begin(9600);
}
void loop()
{
DHT11.read(DHT11PIN); // This method is reading new humidity and temperat
ure.
Serial.print(DHT11.humidity, 1);
Serial.println(DHT11.temperature, 1);
delay(1000);
}

You might also like