Skip to content

Commit 68d3db5

Browse files
authored
Update DhtTemperatureAndHumiditySensor.ino
1 parent d723ca6 commit 68d3db5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

examples/DhtTemperatureAndHumiditySensor/DhtTemperatureAndHumiditySensor.ino

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
*******************************
2121
*
2222
* REVISION HISTORY
23-
* Version 1.0: Henrik EKblad
24-
* Version 1.1 - 2016-07-20: Converted to MySensors v2.0 and added various improvements - Torben Woltjen (mozzbozz)
23+
* Version 1.0 (umidity sensor): Henrik EKblad
24+
* Version 1.1 - 2016-07-20 (humidity sensor): Converted to MySensors v2.0 and added various improvements - Torben Woltjen (mozzbozz)
2525
* Version 2.0 - 2018-09-25: Converted to DHTU Adafruit library - Tiberio Galletti
2626
* Version 2.1 - 2018-10-06: Clearer code and... if something changed... every sensor data are sent to gateway - Tiberio Galletti
2727
* Version 2.2 - 2018-12-27: Heat Index calculation included in sketch (based on Adafruit official library) - Tiberio Galletti
@@ -31,10 +31,10 @@
3131
* It inlcudes Heat Index *sensor*
3232
*
3333
* For more information, please visit:
34-
* http://www.mysensors.org/build/humidity
34+
* http://www.mysensors.org/build/TempHumFeel-DHT
3535
*
3636
*/
37-
#define SN "TemperatureAndHumidity"
37+
#define SN "TempHumFeel"
3838
#define SV "2.2"
3939

4040

@@ -83,10 +83,10 @@ static const uint8_t FORCE_UPDATE_N_READS = 10;
8383
#define SENSOR_HEATINDEX_OFFSET 0 // used for heat index data
8484

8585

86-
87-
#include <MySensors.h>
88-
#include <Adafruit_Sensor.h> // Adafruit Unified Sensor
89-
#include <DHT_U.h> // DHT Sensor library by Adafruit
86+
// used libraries: they have to be installed by Arduino IDE (menu path: tools - manage libraries)
87+
#include <MySensors.h> // *MySensors* by The MySensors Team (tested on version 2.3.2)
88+
#include <Adafruit_Sensor.h> // Official "Adafruit Unified Sensor" by Adafruit (tested on version 1.1.1)
89+
#include <DHT_U.h> // Official *DHT Sensor library* by Adafruit (tested on version 1.3.8)
9090

9191
DHT_Unified dhtu(DHTDATAPIN, DHTTYPE);
9292
// See guide for details on Adafruit sensor wiring and usage:

0 commit comments

Comments
 (0)