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.
Installing
### Dependencies
For all platforms (Raspberry Pi and Beaglebone Black) make sure your system is able to compile and download Python extensions with pip:
On Raspbian or Beaglebone Black’s Debian/Ubuntu image you can ensure your system is ready by running one or two of the following sets of commands:
Python 2:
``sh sudo apt-get update sudo apt-get install python-pip sudo python -m pip install --upgrade pip setuptools wheel ``
Python 3:
``sh sudo apt-get update sudo apt-get install python3-pip sudo python3 -m pip install --upgrade pip setuptools wheel ``
### Install with pip
Use pip to install from PyPI.
Python 2:
`sh sudo pip install Adafruit_DHT `
Python 3:
`sh sudo pip3 install Adafruit_DHT `
### Compile and install from the repository
First download the library source code from the [GitHub releases page](https://github.com/adafruit/Adafruit_Python_DHT/releases), unzipping the archive, and execute:
Python 2:
`sh cd Adafruit_Python_DHT sudo python setup.py install `
Python 3:
`sh cd Adafruit_Python_DHT sudo python3 setup.py install `
You may also git clone the repository if you want to test an unreleased version:
`sh git clone https://github.com/adafruit/Adafruit_Python_DHT.git `
Usage
See example of usage in the examples folder.
Metadata
Release files for Adafruit-DHT 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| Adafruit_DHT-1.4.0.tar.gz | 15.7 kB | Without provenance | Details |
Release files / Adafruit_DHT-1.4.0.tar.gz
| Download URL | Adafruit_DHT-1.4.0.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e927f2232eff5335cb9d8a2cca6dcad4625e61f205b12e31ef04198ea6dec830
|
|
BLAKE2b-256 checksum How to use checksums |
ff24b999708edffbc3d30763acdf07dc7a1666a1542795f3d2b80d6ef2590c0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for Adafruit-DHT 1.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.