Read temperature as Celsius (the default) Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor) Reading temperature or humidity takes about 250 milliseconds! Wait a few seconds between measurements. Serial.println("Date & Time, Humidity %, Temperature *C, Temperature *F") #define DHTPIN 2 // what digital pin we're connected to Download DHT library from Github OR you can download it from here because github library may change by the time or it may not work.Äownload DHT-sensor-library-master.zip Sketch: #include "DHT.h"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |