arduinoprojects

git clone https://git.tarina.org/arduinoprojects
Log | Files | Refs

dhtnew_debug.ino (722B)


      1 //
      2 //    FILE: dhtnew_debug.ino
      3 //  AUTHOR: Rob Tillaart
      4 // VERSION: 0.1.0
      5 // PURPOSE: DHTNEW library debug sketch for Arduino
      6 //     URL: https://github.com/RobTillaart/DHTNew
      7 //
      8 // HISTORY:
      9 // 0.1.0    2020-12-15
     10 //
     11 // DHT PIN layout from left to right
     12 // =================================
     13 // FRONT : DESCRIPTION
     14 // pin 1 : VCC
     15 // pin 2 : DATA
     16 // pin 3 : Not Connected
     17 // pin 4 : GND
     18 
     19 #include <dhtnew.h>
     20 
     21 DHTNEW mySensor(6);
     22 
     23 void setup()
     24 {
     25   Serial.begin(115200);
     26   Serial.println("dhtnew_debug.ino");
     27   Serial.print("LIBRARY VERSION: ");
     28   Serial.println(DHTNEW_LIB_VERSION);
     29   Serial.println();
     30 }
     31 
     32 void loop()
     33 {
     34   delay(2000);
     35   mySensor.read();    // put print statements in core lib (see read())
     36 }
     37 
     38 // END OF FILE