Skip to content

Commit d26e8ec

Browse files
Clarified the Unified Sensor Lib requirement in examples & README
1 parent b781f59 commit d26e8ec

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
This is an Arduino library for the DHT series of low cost temperature/humidity sensors.
1+
# Adafruit DHT Humidity & Temperature Sensor Library
2+
3+
An Arduino library for the DHT series of low cost temperature/humidity sensors.
24

35
Tutorial: https://learn.adafruit.com/dht
46

5-
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 <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
7+
**You must have the following Arduino libraries installed to use this class:**
68

7-
# Adafruit DHT Humidity & Temperature Unified Sensor Library
9+
- [Adafruit Unified Sensor Library](https://github.com/adafruit/Adafruit_Sensor)
810

9-
This library also includes an optional class for the
10-
[DHT humidity and temperature sensor](https://learn.adafruit.com/dht/overview)
11-
which is designed to work with the [Adafruit unified sensor library](https://learn.adafruit.com/using-the-adafruit-unified-sensor-driver/introduction).
11+
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.
1212

13-
You must have the following Arduino libraries installed to use this class:
13+
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 <arduinosketchfolder>/libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.
1414

15-
- [Adafruit Unified Sensor Library](https://github.com/adafruit/Adafruit_Sensor)

examples/DHT_Unified_Sensor/DHT_Unified_Sensor.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// Written by Tony DiCola for Adafruit Industries
44
// Released under an MIT license.
55

6-
// Depends on the following Arduino libraries:
7-
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor
6+
// REQUIRES the following Arduino libraries:
87
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
8+
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Sensor
99

1010
#include <Adafruit_Sensor.h>
1111
#include <DHT.h>

examples/DHTtester/DHTtester.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
// Example testing sketch for various DHT humidity/temperature sensors
22
// Written by ladyada, public domain
33

4+
// REQUIRES the following Arduino libraries:
5+
// - DHT Sensor Library: https://github.com/adafruit/DHT-sensor-library
6+
// - Adafruit Unified Sensor Library: https://github.com/adafruit/Adafruit_Senso
7+
48
#include "DHT.h"
59

610
#define DHTPIN 2 // what digital pin we're connected to

0 commit comments

Comments
 (0)