I did not notice in the first post that you are using the internal OSC. Sometimes it is not stable enough.

Try sending something to the terminal from the PIC with out the senor as a trigger.

press a button
send a serial string