Hi Passion1,

Did you add a pull up resistor to RA4? It is an open drain type of pin when used in the digital mode.

BobK