adafruit_shtc3
A helper library for using the Sensirion SHTC3 Humidity and Temperature Sensor
Author(s): Bryan Siepert
Hardware:
Adafruit SHTC3 Temperature & Humidity Sensor (Product ID: 4636)
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register
A driver for the SHTC3 temperature and humidity sensor.
i2c_bus (I2C) – The I2C bus the SHTC3 is connected to.
Quickstart: Importing and using the SHTC3 temperature and humidity sensor
Here is an example of using the
SHTC3
. First you will need to import the libraries to use the sensorimport board import adafruit_shtc3Once this is done, you can define your
board.I2C
object and define your sensori2c = board.I2C() # uses board.SCL and board.SDA sht = adafruit_shtc3.SHTC3(i2c)Now you have access to the temperature and humidity using the
measurements
. it will return a tuple with thetemperature
andrelative_humidity
measurementstemperature, relative_humidity = sht.measurements
Enables the less accurate low power mode, trading accuracy for power consumption
both temperature
and relative_humidity
, read simultaneously
The current relative humidity in % rH. This is a value from 0-100%.
Perform a soft reset of the sensor, resetting all settings to their power-on defaults
Determines the sleep state of the sensor
The current temperature in degrees Celsius
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4