Well I still don't know if it is the servo
because when I compiled and programed it
the led was supposed to stay on and the other was supposed to be low
unless it made contact, then the other led that was low now becomes high and the other led that was high before now becomes low.

Here is the code

LEDSW var PORTB.0
LED1 var PORTB.1
LED2 var PORTB.2

TRISB=%00000001

Loop:
If LEDSW=1 then
High LED1
LOW LED2
else
LOW LED1
HIGH LED2
endif
Goto Loop

End