This should make it work

TRISA.5 = 1 'make porta.5 input

ANSELA.5 = 0' make porta.5 digital

LED VAR LATC.3 ' Use lat for output and port for input

It's really important to search and study the datasheet for answers. Read the datasheet starting at page 178 "Analog Control"