|
20 | 20 | *******************************
|
21 | 21 | *
|
22 | 22 | * 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) |
25 | 25 | * Version 2.0 - 2018-09-25: Converted to DHTU Adafruit library - Tiberio Galletti
|
26 | 26 | * Version 2.1 - 2018-10-06: Clearer code and... if something changed... every sensor data are sent to gateway - Tiberio Galletti
|
27 | 27 | * Version 2.2 - 2018-12-27: Heat Index calculation included in sketch (based on Adafruit official library) - Tiberio Galletti
|
|
31 | 31 | * It inlcudes Heat Index *sensor*
|
32 | 32 | *
|
33 | 33 | * For more information, please visit:
|
34 |
| - * http://www.mysensors.org/build/humidity |
| 34 | + * http://www.mysensors.org/build/TempHumFeel-DHT |
35 | 35 | *
|
36 | 36 | */
|
37 |
| -#define SN "TemperatureAndHumidity" |
| 37 | +#define SN "TempHumFeel" |
38 | 38 | #define SV "2.2"
|
39 | 39 |
|
40 | 40 |
|
@@ -83,10 +83,10 @@ static const uint8_t FORCE_UPDATE_N_READS = 10;
|
83 | 83 | #define SENSOR_HEATINDEX_OFFSET 0 // used for heat index data
|
84 | 84 |
|
85 | 85 |
|
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) |
90 | 90 |
|
91 | 91 | DHT_Unified dhtu(DHTDATAPIN, DHTTYPE);
|
92 | 92 | // See guide for details on Adafruit sensor wiring and usage:
|
|
0 commit comments