Thanks Pedja. One more question has popped up in my mind. I measured the voltage on the output of the sensor. It measures out at 8V, the sensor is working on 12V. So is it safe to connect the connections from the sensor to the PIC with just one resistor in between?