Hi, tacbanon

You should check that ...

Define 20 OSC
Define ADC_BITS 8 ' Set number of bits in result
Define ADC_CLOCK 3 ' Set clock source (3=rc)
Define ADC_SAMPLEUS 50 ' Set sampling time in uS
... I just see 5 errors ...

Alain