You're 99% of the way there... here's an amendment that should get you all the way...

Led Var PORTC.1
Sensor var PORTC.2

TRISC=%00000100

high Led
pause 5000
low led
loop:
if sensor = 1 then
high led
else
low led
endif
goto loop
end