Right. You need to test the wiring plug. Check for a live (5v) and an earth. The 3rd wire is feedback to control unit. Do a continuity test on that. If all of them are ok and the sensor is a good sensor, it leaves the control unit itself.
That's straight from TIS (Vauxhall protocol)
Good luck!
Matt