Arduino library for DHT11, DHT22, etc Temperature & Humidity Sensors
Go to file
per1234 86115884c7 Make preprocessor conditional false when identifier undefined
A preprocessor conditional directive intended to only evaluate as true when compiling for the Arduino Nano 33 BLE board
was also evaluating as true when compiling for any board that didn't define the compared identifiers because undefined
identifiers are replaced with 0 by the C/C++ preprocessor, making them equal.

From the C++11 standard section 16.1, paragraph 4:

> After all replacements due to macro expansion and the defined unary operator
have been performed, all remaining identifiers and keywords 148 , except for true and false, are replaced
with the pp-number 0

The fix is to modify the directive to check whether the macro has been defined.
2020-12-01 17:53:54 -08:00
.github actionified, formatted and doxy'd 2020-04-08 11:37:24 -07:00
examples Change initial HIGH delay, fix comments in examples 2019-01-28 17:05:54 -08:00
.gitignore Add .gitignore 2019-07-04 11:31:09 +02:00
code-of-conduct.md actionified, formatted and doxy'd 2020-04-08 11:37:24 -07:00
CONTRIBUTING.md [Update URL] 2019-11-01 14:41:05 +05:00
DHT_U.cpp actionified, formatted and doxy'd 2020-04-08 11:37:24 -07:00
DHT_U.h actionified, formatted and doxy'd 2020-04-08 11:37:24 -07:00
DHT.cpp Merge pull request #159 from Rotzbua/patch-1 2020-05-21 12:16:14 -04:00
DHT.h Make preprocessor conditional false when identifier undefined 2020-12-01 17:53:54 -08:00
keywords.txt Use correct field separator in keywords.txt 2018-07-16 05:02:42 -07:00
library.properties Bump to 1.4.0 2020-09-16 14:42:30 -04:00
license.txt actionified, formatted and doxy'd 2020-04-08 11:37:24 -07:00
README.md actionified, formatted and doxy'd 2020-04-08 11:37:24 -07:00

DHT sensor library Build Status

Description

An Arduino library for the DHT series of low-cost temperature/humidity sensors.

You can find DHT tutorials here.

Dependencies

Contributing

Contributions are welcome! Not only youll encourage the development of the library, but youll also learn how to best use the library and probably some C++ too

Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation and doxygen

Documentation is produced by doxygen. Contributions should include documentation for any new code added.

Some examples of how to use doxygen can be found in these guide pages:

https://learn.adafruit.com/the-well-automated-arduino-library/doxygen

https://learn.adafruit.com/the-well-automated-arduino-library/doxygen-tips

Written by Adafruit Industries based on work by:

  • T. DiCola
  • P. Y. Dragon
  • L. Fried
  • J. Hoffmann
  • M. Kooijman
  • J. M. Dana
  • S. Conaway
  • S. IJskes
  • T. Forbes
  • B. C
  • T. J Myers
  • L. Sørup
  • per1234
  • O. Duffy
  • matthiasdanner
  • J. Lim
  • G. Ambrozio
  • chelmi
  • adams13x13
  • Spacefish
  • I. Scheller
  • C. Miller
  • 7eggert

MIT license, check license.txt for more information All text above must be included in any redistribution

To install, use the Arduino Library Manager and search for "DHT sensor library" and install the library.