Changed some bytes to ints on 8bit numbers.
Modified the zero_sensor function to allow future extensibility.