Completely rewrote the Sensor code to work with timers and add debug lighting. Controller code only slightly changed.