Metadata-Version: 2.1
Name: dht20_sensor
Version: 0.0.2
Summary: A minimal implementation for taking temperature and humidity readings with the DHT20 sensor
Author-email: Kieran Porter <kieranintehdas@gmail.com>
License: GPL-3.0-or-later
Project-URL: Homepage, https://github.com/KieraninTehdas/dht20-sensor
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# 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)

```
