adafruit_si7021
¶
This is a CircuitPython driver for the SI7021 temperature and humidity sensor.
- Author(s): Radomir Dopieralski
Implementation Notes¶
Hardware:
- Adafruit Si7021 Temperature & Humidity Sensor Breakout Board (Product ID: 3251)
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_si7021.
SI7021
(i2c_bus, address=64)[source]¶ A driver for the SI7021 temperature and humidity sensor.
Parameters: -
relative_humidity
¶ The measured relative humidity in percent.
-
start_measurement
(what)[source]¶ Starts a measurement.
Starts a measurement of either
HUMIDITY
orTEMPERATURE
depending on thewhat
argument. Returns immediately, and the result of the measurement can be retrieved with thetemperature
andrelative_humidity
properties. This way it will take much less time.This can be useful if you want to start the measurement, but don’t want the call to block until the measurement is ready – for instance, when you are doing other things at the same time.
-
temperature
¶ The measured temperature in degrees Celcius.
-