You can figure this out Ziggy. We've all been there, upside down and/or backwards.
Here's a good way to figure it out. Standing beside the car, imagine the sensor in your head. Place it in the same orientation as it really is (in your imagination.) But imagine all the other stuff isn't there. Now imagine your right pointer finger is the sensor and put it in the same direction as the sensor really is (imagine the tip of your finger has the threads and the wire travels up your arm. Now, to loosen your imagined sensor, it has to turn counter-clockwise. This will be moving your right thumb from up-to-down if you imagined your finger is the sensor. (Note: if your right thumb is pointed up, your wrist can only travel in one direction to get pointed down... the other way is really awkward for me... I assume it is for you.)
Now, spin your imagined sensor around and around in your head. (It really helps to imagine more than two complete revolutions.) Keep picturing that spinning direction as you move from the standing position to where you have to go to get a wrench on it. The spinning directions will stay the same for the sensor where-ever you move... you just have to remember. If you get confused, stick out your right pointer finger and refresh your memory.
By the way, you can call this the 'right-hand screw loosening rule', but its not the same thing as the more famous 'right hand rule.'