implement i2c connection timeout