How do you replace a brake light sensor on a 2004 Mercury Mountaineer?

it is under the driver side dash on the brake peadle about half way up unhook wire take off nut holding an replace,,,, note distance the sensor sticks out you will have to ajuste the new one to the same length on some models