adafruit_sht31d
¶
This is a CircuitPython driver for the SHT31-D temperature and humidity sensor.
- Author(s): Jerry Needell, Llewelyn Trahaearn
Implementation Notes¶
Hardware:
- Adafruit Sensiron SHT31-D Temperature & Humidity Sensor Breakout (Product ID: 2857)
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_sht31d.
SHT31D
(i2c_bus, address=68)[source]¶ A driver for the SHT31-D temperature and humidity sensor.
Parameters: -
art
¶ Control accelerated response time This feature only affects ‘Periodic’ mode.
-
clock_stretching
¶ Control clock stretching. This feature only affects ‘Single’ mode.
-
frequency
¶ Periodic data acquisition frequency Allowed values are the constants FREQUENCY_* Frequency can not be modified when ART is enabled
-
heater
¶ Control device’s internal heater.
-
mode
¶ Operation mode Allowed values are the constants MODE_* Return the device to ‘Single’ mode to stop periodic data acquisition and allow it to sleep.
-
relative_humidity
¶ The measured relative humidity in percent. ‘Single’ mode reads and returns the current humidity as a float. ‘Periodic’ mode returns the most recent readings available from the sensor’s cache in a FILO list of eight floats. This list is backfilled with with the sensor’s maximum output of 100.01831417975366 when the sensor is read before the cache is full.
-
repeatability
¶ Repeatability Allowed values are the constants REP_*
-
serial_number
¶ Device serial number.
-
status
¶ Device status.
-
temperature
¶ The measured temperature in degrees celsius. ‘Single’ mode reads and returns the current temperature as a float. ‘Periodic’ mode returns the most recent readings available from the sensor’s cache in a FILO list of eight floats. This list is backfilled with with the sensor’s maximum output of 130.0 when the sensor is read before the cache is full.
-