Ledger Nano X - The secure hardware wallet
SHARE
TWEET

humidity and temp sensor

tBOz16 Mar 31st, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <dht.h>
  2.  
  3.  
  4.  
  5. dht DHT;
  6.  
  7. #define DHT11_PIN 7
  8.  
  9. void setup(){
  10.   Serial.begin(9600);
  11. }
  12.  
  13. void loop()
  14. {
  15.   int chk = DHT.read11(DHT11_PIN);
  16.   Serial.print("Temperature = ");
  17.   Serial.println(DHT.temperature);
  18.   Serial.print("Humidity = ");
  19.   Serial.println(DHT.humidity);
  20.   delay(1000);
  21. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top