Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 647 Bytes

File metadata and controls

17 lines (10 loc) · 647 Bytes

Aosong DHT22

This module contains the Zerynth driver for Aosong DHT22 temperature and humidity sensor (also named AM2302, datasheet).

It uses a single wire for data communication so a pin with ICU peripheral is needed.

This library is based on the work of: link 1 link 2

Example:

import dht22

temp, hum = dht22.get_temp_hum(D3, D3.ICU)