Add support for the DHT11/DHT22 sensors

This commit is contained in:
2021-01-15 08:34:44 +01:00
parent 2f210d3db6
commit c9f3eee656
2 changed files with 73 additions and 2 deletions

View File

@@ -32,3 +32,18 @@
// different for each station you install (e.g. if you want to measure the
// temperature and humidity of each room separately)
#define MDNS_NAME "internal-hostname"
// If you have a DHT temperature+humidity sensor of this type will be used,
// remove the #undef line and uncomment one of DHT11 or DHT22. You also have
// to define the PIN your DHT sensors data (usually marked as DAT) is
// connected to.
//
// DHT11 sensors are usually blue, and dont work under freezing point
// (0°C/32°F)
//
// DHT22 sensors are usually white and slightly bigger than DHT11 ones. They
// work well under freezing point (usually above -40°C/-40°F)
#undef DHT_TYPE
//#define DHT_TYPE DHT11
//#define DHT_TYPE DHT22
//#define DHT_PIN D5