added control logic

trying to see whether we have an output from ADC by assigning it to LEDs