As a quick fix for electronics tinkerers, adding extra pull-up resistors to SCL and SDA may also resolve I2C issues.
Typically, I2C sensor boards have on-board resistors. But they may be too weak (large resistance value) for long wires and/or faster bus speeds. Adding pull-up resistors from the I2C lines to 3.3V will reduce the total pull-up resistance (more resistors in parallel), making the pull-up speed faster. I'd start with adding 4.7kohm, and if that doesn't work try 1k. I wouldn't go lower than that.
The technical background is explained in this video:
https://www.youtube.com/watch?v=n2eaY51rkJQ
Typically, I2C sensor boards have on-board resistors. But they may be too weak (large resistance value) for long wires and/or faster bus speeds. Adding pull-up resistors from the I2C lines to 3.3V will reduce the total pull-up resistance (more resistors in parallel), making the pull-up speed faster. I'd start with adding 4.7kohm, and if that doesn't work try 1k. I wouldn't go lower than that.
The technical background is explained in this video:
https://www.youtube.com/watch?v=n2eaY51rkJQ