Commit c084190f authored by B.Nagasuman's avatar B.Nagasuman

Upload New File

parent cc8a0724
#include <dht.h>
dht DHT;
#define DHT11_PIN 2
void setup(){
Serial.begin(9600);
}
void loop(){
int chk = DHT.read11(DHT11_PIN);
Serial.print("Temperature = ");
Serial.println(DHT.temperature);
Serial.print("Humidity = ");
Serial.println(DHT.humidity);
delay(1000);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment