Renamed read_sensor. New test code in loop()