![]() ![]() Note that older versions of this library took an optional third parameter to 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 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 4 // Digital pin connected to the DHT sensor REQUIRES the following Arduino libraries: Example testing sketch for various DHT humidity/temperature sensors written by ladyada Notes: The resistance is not required, the DHT22 that I propose already has its resistance. You will find the source program and all the explanations on the “RANDOM NERD TUTORIAL” site from this link:ĭHT11 and DHT22 Temperature and Humidity Sensors ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |