fredag den 1. april 2016

Dht11 library

GitHub is where people build software. This version of the library is used in this tutorial:. This article describes a small library for reading both from the sensor.


The DHTis similar to the DHTand has greater accuracy. However, this library is not suitable for the DHTor DHTas . Test Software Sketch for DHT(Credits: THANKS to Rob Tillaart).

See Libraries HowTo HERE Here is a. ZIP file available with the DHT sensor library for easier installation: DHT- lib. In this tutorial we will learn how to use a DHT ( DHTversion) Temperature and Humidity Sensor. It's accurate enough for most projects that need to keep track of humidity and temperature readings.


Again we will be using a Library specifically designed for these sensors that will make our code . Arduino IDE in the Cloud. Find this and other hardware projects on Hackster. DTHincludes both Humidity and Temperature sensor.


Hardware Components required:- 1) DTHHumidity and Temperature Sensor.

You can get the sensor DTHData Sheet from the below link. Display Humidity and Temperature on the Serial Monitor. Call read method err= dht11. DHTis a temperature and humidity sensor.


DHTsensor gives humidity and temperature data. Make the following connections. It has got following pin interface. Following two libraries will be required to run this code. You can then decide what will be the delays for DHT22.


As pointed out in the comments, it turns out the DHTonly takes new readings every few seconds. Guessing, the DHTlibrary you are using either knowingly returns an unreasonable value of -999. Or is returning exactly what the DHTreports which, again, is an unreasonable . All seems to be ok, but the dhtlibrary sends a time out message and no result.


I installed the file provided with the sunfounder home kit. Any idea of what is going wrong with that?

Ingen kommentarer:

Send en kommentar

Bemærk! Kun medlemmer af denne blog kan sende kommentarer.

Thermoelectric generator module

II-VI Marlow power generation technology takes existing temperature differences to produce renewable energy for a variety of small and larg...