adafruit_am2320
¶
This is a CircuitPython driver for the AM2320 temperature and humidity sensor.
- Author(s): Limor Fried
Implementation Notes¶
Hardware:
- Adafruit AM2320 Temperature & Humidity Sensor (Product ID: 3721)
Software and Dependencies:
- Adafruit CircuitPython firmware for the ESP8622 and M0-based boards:
- https://github.com/adafruit/circuitpython/releases
- Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
-
class
adafruit_am2320.
AM2320
(i2c_bus, address=92)¶ A driver for the AM2320 temperature and humidity sensor.
Parameters: -
relative_humidity
¶ The measured relative humidity in percent.
-
temperature
¶ The measured temperature in celsius.
-
-
exception
adafruit_am2320.
AM2320DeviceNotFound
¶ Indicates that a device couldn’t be found.
-
exception
adafruit_am2320.
AM2320Exception
¶ Base class for exceptions.
-
exception
adafruit_am2320.
AM2320ReadError
¶ indicates that valid data could not be read from the sensor.
This may be due to a regular I2C read failure, or due to a checksum mismatch.