depending on how your old mirror is wired, you may have to cut and splice wires.
easy to check, remove the triangular cover inside, and you'll see if it has a connector.
I just replaced the V6 drivers side mirror, managed to get one with the sensor already in it, but it had the block connector found on the later cars, the V6 connectors are under the dash, with a loooong loom going to the mirror.
the wires are all the same colour, with 2 green wires for the sensor. checked my old one earlier, and its just bonded to the inside of the casing.
make sure you test it before putting back together, as if you reverse wires you get wrong readings on the climate control console
gone but never forgotten . new blue
XBOX Gamertag : celadon278
Xbox Forza3 AO : Class B joint 3rd