get value from i2c sensors