Skip to content
Discussion options

You must be logged in to vote

OSError: [Errno 5] EIO tells you that the I2C device is not responding. Something broke in the communication.

  • check the wiring (SDA, SCL, GND, VCC)
  • check if pull-up resistors are present.
  • try i2c.scan(). It should return a list of value containing the decimal address of your device (88). If i2c.scan() returns an empty list, then there us no link to your sensor.

A note about code formatting: please enclose the code in lines with three backticks ```, not only one.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@strumberr
Comment options

@strumberr
Comment options

@zuozuo-98
Comment options

Answer selected by strumberr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants