This is a https://www.adafruit.com/product/4566 connected via a https://www.adafruit.com/product/4210 to a https://www.adafruit.com/product/4463 to a pi B+. Green led is on on the sensor so i know it is getting power at least. Photo attached of setup.
I've followed steps on https://learn.adafruit.com/circuitpytho ... spberry-pi and i2c looks like it is up and running:
Code: Select all
$ python3 blinkatest.py
Hello blinka!
Digital IO ok!
I2C ok!
SPI ok!
done!
Code: Select all
import time
import board
import adafruit_ahtx0
# Create sensor object, communicating over the board's default I2C bus
i2c = board.I2C() # uses board.SCL and board.SDA
sensor = adafruit_ahtx0.AHTx0(i2c)
while True:
print("\nTemperature: %0.1f C" % sensor.temperature)
print("Humidity: %
Code: Select all
ValueError: No I2C device at address: 0x38
I've spent some time poking around to troubleshoot, but I'm at a loss here. Any ideas/suggestions?