adafruit_am2320

This is a CircuitPython driver for the AM2320 temperature and humidity sensor.

  • Author(s): Limor Fried

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_am2320.AM2320(i2c_bus, address=92)

A driver for the AM2320 temperature and humidity sensor.

Parameters:
  • i2c_bus – The busio.I2C object to use. This is the only required parameter.
  • address (int) – (optional) The I2C address of the device.
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.