Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor Connect pin 4 (on the right) of the sensor to GROUND Connect pin 2 of the sensor to whatever your DHTPIN is You are the best! That is the code: // Example testing sketch for various DHT humidity/temperature sensors Thanks so much for the help, I was thinking that I would not be able to. show originalįinally I did, I did what said, I inserted the Losant in the example that worked with me and it worked perfectly. NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1 Connect pin 1 (on the left) of the sensor to +5V Pin 15 can work but DHT must be disconnected during program upload. #define DHTPIN 2 // Digital pin connected to the DHT sensor REQUIRES the following Arduino libraries: I was able to use this as a starting point and then wrap the Losant connection code around it: adafruit/DHT-sensor-library/blob/master/examples/DHTtester/DHTtester.ino // Example testing sketch for various DHT humidity/temperature sensors Typically, our users get things working on the hardware side of things.Ī couple of things I can recommend though: Generally, we can help to get the device connected to Losant. Hey it’s hard to debug an issue like this on our end.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |