Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (29 sloc) 1.424 kB
027d2de @nethoncho first commit version 0.3
authored
1 DHT22.cpp - DHT22 sensor library
2 Developed by Ben Adams - 2011
3
4 Humidity and Temperature Sensor DHT22 info found at
f1c5b3a @ringerc Port to Arduino 1.0 and more as per README changes
ringerc authored
5 http://www.sparkfun.com/products/10167
6 The same sensor has also been spotted going by the names RHT22, AM2302
7 and RHT03 from a variety of vendors. It uses a non-standard 1-wire digital
8 signalling protocol.
9
10 To install this library for use with the Arduino IDE, copy it
11 to the `libraries' folder and restart the IDE. For an example of
12 how to use it, see File->Examples->DHT22->Serial .
13
14 Version 0.5: 15-Jan-2012 by Craig Ringer
15 Update to support Arduino 1.0
16 Make accessors inlineable so they can be optimised away
17 Preserve original integer values from sensor and offer access to them
18 Permit floating point support to be disalbed by defining DHT22_NO_FLOAT before including DHT22.h
027d2de @nethoncho first commit version 0.3
authored
19
a655c62 @nethoncho Version 0.4
authored
20 Version 0.4: 24-Jan-2011 by Ben Adams
21 Added return code constants to keywords.txt
22 Returns DHT_ERROR_CHECKSUM on check sum mismatch
23
027d2de @nethoncho first commit version 0.3
authored
24 Version 0.3: 17-Jan-2011 by Ben Adams
25 This version reads data
26 Needs check sum code added at the end of readData
27
28 Version 0.2: 16-Jan-2011 by Ben Adams
29 Changed coding style to match other Arduino libraries.
30 This version will not read data either!
31
32 Version 0.1: 10-Jan-2011 by Ben Adams nethoncho AT gmail.com
33 First Version is a skeleton. This version will not read data!
34 Code adapted from the following sources:
35 The Arduino OneWire lib
36 http://sheepdogguides.com/arduino/ar3ne1humDHT11.htm
Something went wrong with that request. Please try again.