@ReverseEMF: You are correct, I was ass-sooming the OP already had a variable declared for ADC result. :-[