A minimal implementation for taking temperature and humidity readings with the DHT20 sensor
Project description
dht20-sensor
Code for taking readings with the DHT20 temperature humidity sensor using I2C.
This is the most basic working implementation that suits my needs. It doesn't handle sensor initialisation.
Example Usage
import time
from dht20_sensor.sensor import DHT20Sensor
if __name__ == "__main__":
sensor = DHT20Sensor()
while True:
t, h = sensor.read()
print(t)
print(h)
time.sleep(2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dht20_sensor-0.0.1.tar.gz
(38.8 kB
view hashes)
Built Distribution
Close
Hashes for dht20_sensor-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a31e951809824270fc310c6d28bc550dbcabb53e9b718e524985c4cf687b4f93 |
|
MD5 | a921bcbe4bca49b46393c59d428ca562 |
|
BLAKE2b-256 | a92426129eb9bdefb3a83cbd557095f8a69deeaecc74072d33571294eb04864e |