better error handling in case of problems reading the i2c bus