SHARE
TWEET

temp

a guest Feb 17th, 2020 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <dht.h>
  2.  
  3. #include <dht.h>
  4. #include <LiquidCrystal.h>
  5.  
  6. LiquidCrystal lcd(12, 13, 5, 4, 3, 2);
  7.  
  8. dht DHT;
  9. void setup(){
  10.   Serial.begin(9600);
  11.   lcd.begin(16,2);
  12.   lcd.clear();
  13. void loop()
  14. {
  15.   int chk = DHT.read11(DHT11_PIN);
  16.   if(DHT.temperature> -32){
  17.   lcd.setCursor(0,0);
  18.   lcd.print("Temp= ");
  19.    lcd.setCursor(6,0);
  20.   lcd.print(DHT.temperature);
  21.   delay(500);
  22.   }
  23.   if(DHT.temperature > 15){
  24.   lcd.setCursor(0,1);
  25.   lcd.print("Cold Boba! :)");
  26.   delay(500);
  27.   for (angle =1; angle <180; angle++)
  28. {
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