Charles,

This sensor pulses hi to low. I suspect some of my sampling is reading on the low part of the cycle. Thats why I slowed way down the sampling time to 20ms.

ADC has worked well for me on this PIC.

I will look at your subr.

Thanks