Skip to main content

Library to get readings from the DHT11, DHT22, and AM2302 humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.

Project description

Adafruit Python DHT Sensor Library
==================================

Python library to read the DHT series of humidity and temperature sensors on a Raspberry Pi or Beaglebone Black.

Designed specifically to work with the Adafruit DHT series sensors ----> https://www.adafruit.com/products/385

Currently the library is tested with Python 2.6, 2.7, 3.3 and 3.4. It should work with Python greater than 3.4, too.

For all platforms (Raspberry Pi and Beaglebone Black) make sure your system is able to compile Python extensions. On Raspbian or Beaglebone Black's Debian/Ubuntu image you can ensure your system is ready by executing:

````
sudo apt-get update
sudo apt-get install build-essential python-dev
````

Install the library by downloading with the download link on the right, unzipping the archive, and executing:

````
sudo python setup.py install
````
You can ommit the sudo if you use raspberry pi.

See example of usage in the examples folder.

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Tony DiCola for Adafruit Industries.

MIT license, all text above must be included in any redistribution

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Adafruit_DHT-1.3.2.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

Adafruit_DHT-1.3.2-py3.5-linux-x86_64.egg (38.9 kB view details)

Uploaded Source

File details

Details for the file Adafruit_DHT-1.3.2.tar.gz.

File metadata

  • Download URL: Adafruit_DHT-1.3.2.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for Adafruit_DHT-1.3.2.tar.gz
Algorithm Hash digest
SHA256 b88c7dd8f96d1f5f3fd439a2ca2b524002a1ba6647ac2235134556ac64567f49
MD5 7115b3e50aa141ccba2a02207304d53a
BLAKE2b-256 5865d020e725c2c0fa851dfc57efad18a9bf6a29d2ffc0649c11c6dca4f756bc

See more details on using hashes here.

File details

Details for the file Adafruit_DHT-1.3.2-py3.5-linux-x86_64.egg.

File metadata

  • Download URL: Adafruit_DHT-1.3.2-py3.5-linux-x86_64.egg
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.12.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.13

File hashes

Hashes for Adafruit_DHT-1.3.2-py3.5-linux-x86_64.egg
Algorithm Hash digest
SHA256 f740b4dd849ee72942b51e27f0830120d753e9eb05420558d57b0a538c0198e2
MD5 58945322680bf04089aa5234265622e5
BLAKE2b-256 356a6c2dc60e758b4694eff573223d7e39e0d3db74f2783074edd1d480c19de6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page