Changed sensor_write behavior to account for the fact that i2c_write sends the device address again (inappropriate).