Become a leader in the IoT community!
New DevHeads get a 320-point leaderboard boost when joining the DevHeads IoT Integration Community. In addition to learning and advising, active community leaders are rewarded with community recognition and free tech stuff. Start your Legendary Collaboration now!
Hi @enthernetcode It looks like the method `read_compensated_data` does not exist in the `bme280` library you are using. You might want to check the documentation or the source code of the library to find the correct method for reading data from the sensor
Hello @enthernetcode
`read_compensated_data()` method doesn’t exist in your BME280 library. Try adding this:
“`
while True:
print(f”Temperature: {bme.temperature:.2f} °C”)
print(f”Pressure: {bme.pressure:.2f} hPa”)
print(f”Humidity: {bme.humidity:.2f} %”)
time.sleep(1)
“`
If this doesn’t work, check your BME280 library’s version
okay would do
CONTRIBUTE TO THIS THREAD