AVR: Reading temperature measurements from a Bosch BMP180 module using I2C and a state-machine design