wafa_ath
wafa_ath
DIIDevHeads IoT Integration Server
Created by Enthernet Code on 7/8/2024 in #middleware-and-os
Troubleshooting BME280 Sensor Data Reading Issue on Raspberry Pi Pico with MicroPython
Hello @Enthernet Code 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)
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
5 replies