adafruit/Adafruit_CircuitPython_SHTC3

Adafruit_CircuitPython_SHTC3/examples/shtc3_simpletest.py

Napilnic opened this issue · 0 comments

image

Hi.

Try to add sht.reset().
On my Jetson following code works without power reset.

import time
import board
import adafruit_shtc3

i2c = board.I2C()  # uses board.SCL and board.SDA
sht = adafruit_shtc3.SHTC3(i2c)

run = True

while run:
    try:
        temperature, relative_humidity = sht.measurements
        print("Temperature: %0.1f C" % temperature)
        print("Humidity: %0.1f %%" % relative_humidity)
        print("")
        time.sleep(1)
    except KeyboardInterrupt:
        run = False

sht.reset()

print('Service stopped')