I found the other end of the wiring, it wasn't very far away but access was tricky. Took me a while to get it unplugged but got there in the end. Dropped the exhaust and left the sensor in place as I thought this would be the safest option, as long as I'm careful when shifting the exhaust around.
It's a big heavy exhaust and lying on my back under the van having lowered it using arms, legs and axle stands, it took me a while to extract meself from underneath it whilst wriggling around in the confined space.
Thanks again for all the info.
Tony