$ 0 0 The code looks correct. It's possible that the adcResult array is not correctly defined, or read.