switched from adc to analogin