Protect sensors from reverce voltage

Hi, I have tested taking a signal from a car inlet pressure. All works good but when I forgotten to connect the ground from the sensor the arduino did something senting back some voltage and the car didnt work. How can I protect the sensor from some fault and protect from reverse voltage?

Without a diagram, no way we can tell. :wink:

LOL !

Next time use optocouplers.

I hope you didn't connect your 5V Arduino directly to your car's 12V system... Normally, I'd worry about damaging the Arduino, and you are very unlikely to permanently damage your car, but you could do something that causes the car to temporarily malfunction.

Post a schematic of what you did . (photo of hand drawn circuit)