RED HAT
DIIDevHeads IoT Integration Server
•Created by Enthernet Code on 7/30/2024 in #middleware-and-os
How to Fix "Failed to Read Sensor: OSError" on Arduino Nano 33 BLE Sense with MicroPython?
@Enthernet Code Sometimes, sensors might not be initialized correctly if their addresses are not detected. You can use an
I2C
scanner script to check if the sensors are detected on the I2C
bus. Try this I2C
scanner script:
Also, ensure that the I2C
bus speed is compatible with your sensors. You might need to set the I2C
frequency when initializing the I2C
bus. Try setting the frequency to 100kHz:
5 replies