Print an error message if I2C communication fails