LED ranging

basic logic for ranging. Need calibrations routine for setup.