The signal needs to be inverted if using the hardware serial pin on your pic hence the reason for the max232. You could just use serin2 comand and run it in inverted mode.

Sphere