Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <dht.h>
- dht DHT;
- #define DHT11_PIN 7
- void setup(){
- Serial.begin(9600);
- }
- void loop()
- {
- int chk = DHT.read11(DHT11_PIN);
- if (DHT.temperature > -10)
- {
- Serial.print("Temperature = ");
- Serial.println(DHT.temperature);
- Serial.print("Humidity = ");
- Serial.println(DHT.humidity);
- delay(1000);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement