add check in i2c_read