MicroPython driver for the AHT10 and AHT20 temperature and humindity sensors.
Project description
micropython_ahtx0
MicroPython driver for the AHT10 and AHT20 temperature and humindity sensors.
Example usage
import utime
from machine import Pin, I2C
import ahtx0
# I2C for the Wemos D1 Mini with ESP8266
i2c = I2C(scl=Pin(5), sda=Pin(4))
# Create the sensor object using I2C
sensor = ahtx0.AHT10(i2c)
while True:
print("\nTemperature: %0.2f C" % sensor.temperature)
print("Humidity: %0.2f %%" % sensor.relative_humidity)
utime.sleep(5)
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
Built Distribution
Close
Hashes for micropython_ahtx0-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 189185ebef706dc4e0f2afb5149fad3d4ad7f8b0298c11e03f0eb7eaec37579e |
|
MD5 | d497c529078b20d4b92bb0e0e3943614 |
|
BLAKE2b-256 | 6030ff5c5d2cebaad0fe822616ccec4d9f6104853f50cc71c5df055fcc142df0 |