Code reformating Arduino sensor, untested