diff --git a/README.md b/README.md index d32afdc..03e8da1 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,14 @@ -This is an Arduino library for the DHT series of low cost temperature/humidity sensors. +# Adafruit DHT Humidity & Temperature Sensor Library + +An Arduino library for the DHT series of low cost temperature/humidity sensors. Tutorial: https://learn.adafruit.com/dht -To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. - -# Adafruit DHT Humidity & Temperature Unified Sensor Library - -This library also includes an optional class for the -[DHT humidity and temperature sensor](https://learn.adafruit.com/dht/overview) -which is designed to work with the [Adafruit unified sensor library](https://learn.adafruit.com/using-the-adafruit-unified-sensor-driver/introduction). - -You must have the following Arduino libraries installed to use this class: +**You must have the following Arduino libraries installed to use this class:** - [Adafruit Unified Sensor Library](https://github.com/adafruit/Adafruit_Sensor) + +Examples include both a "standalone" DHT example, and one that works along with the Adafruit Unified Sensor Library. Unified sensor library is required even if using the standalone version. + +Recent Arduino IDE releases include the Library Manager for easy installation. Otherwise, to download, click the DOWNLOADS button in the top right corner, rename the uncompressed folder DHT. Check that the DHT folder contains DHT.cpp and DHT.h. Place the DHT library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE. + diff --git a/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino b/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino index e281578..d0392f8 100644 --- a/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino +++ b/examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino @@ -3,9 +3,9 @@ // Written by Tony DiCola for Adafruit Industries // Released under an MIT license. -// Depends on the following Arduino libraries: -// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor +// REQUIRES the following Arduino libraries: // - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library +// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor #include #include diff --git a/examples/DHTtester/DHTtester.ino b/examples/DHTtester/DHTtester.ino index e0d9f27..20fb2c6 100644 --- a/examples/DHTtester/DHTtester.ino +++ b/examples/DHTtester/DHTtester.ino @@ -1,6 +1,10 @@ // Example testing sketch for various DHT humidity/temperature sensors // Written by ladyada, public domain +// REQUIRES the following Arduino libraries: +// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library +// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Senso + #include "DHT.h" #define DHTPIN 2 // what digital pin we're connected to