Library for reading one or more DHTxx Temperature and Humidity Sensors in SignalK/SensESP.
This library allows you to use one or more - of the same or different variants - of the DHTxx in the same
SensESP Project (main.cpp). It works with the DHT11, DHT21 and DHT22 different sensors. Here's how to use it.
-
Follow the instructions in the SensESP README to install Signal K and SensESP.
-
Don't try to use this library until after you have successfully built and uploaded one of the SensESP examples and seen the desired output in the Signal K Server.
-
Start a new Project in PlatformIO.
-
Follow the instructions in the SensESP README (and the Wiki if you need detailed instructions) for getting a good
platformio.inifile for your Project. -
Make one modification to your shiny new
platformio.ini- add this library to thelib_depssection, like this:
lib_deps =
SignalK/SensESP
https://github.com/SensESP/DHTxx.git
-
Replace the contents of your Project's
main.cppfile with the contents of the example file that's included with this library. -
Modify your
main.cppto reflect the sensor or sensors that you're actually testing with. -
Build, upload, and test your Project.
Once you have it working properly, you can include this library in any SensESP Project just by following Step 5 above.