I'm afraid you'll have to remove the parcel shelf, undo all the left hand side hoop bolts, and then remove all of the stuff holding the hinge in position by your drivers door. Thats the vent, grommets door rubber, electrical connections, 2 hex bolts, and the rear roof seal rubber, before lifting the roof out. - Quite a job if you dont know what your doing or have the correct tools . (45 mins if you do though).
I've never tried it, but if you've some sort of remote gooseneck camera thing you may be able to worm your way in and see what your doing without taking everything out.
Have you confirmed the sensor is hanging loose before you go to all of that trouble?