added an i2c implementation that works. It's not optimal, and the readings from the device are not stable.