1. Disconnect the negative battery cable.
2. Remove the battery and battery tray.
3. Remove the air cleaner component. (See INTAKE-AIR SYSTEM REMOVAL/INSTALLATION.)
4. Disconnect the input/turbine speed sensor connector.

5. Remove the input/turbine speed sensor.
6. Apply ATF to a new O-ring and install it on a new input/turbine speed sensor.
7. Install the input/turbine speed sensor.
Tightening torque 8-11 N·m {82-112 kgf·cm, 71-97 in·lbf}
8. Connect the input/turbine speed sensor connector.
9. Install the air cleaner component. (See INTAKE-AIR SYSTEM REMOVAL/INSTALLATION.)
10. Install the battery and battery tray.
11. Connect the negative battery cable.
Input/turbine speed sensor inspection
Vehicle speedometer sensor (vss) inspectionMazda 6 Service Manual: Rocking the Vehicle
WARNING
Do not spin the wheels at more than 56 km/h (35 mph), and do not allow
anyone to stand behind a wheel when pushing the vehicle: When the vehicle
is stuck, spinning the wheels at high speed is dangerous. The spinning tire could
overheat and explode. This could cause serious injuries.
...
Mazda 6 Service Manual: Transaxle range (tr) switch removal/installation
1. Disconnect the negative battery cable.
2. Remove the air cleaner component. (See INTAKE-AIR SYSTEM
REMOVAL/INSTALLATION.)
Caution
Water or foreign objects entering the connector can cause a poor
connection or corrosion. Be sure not to drop water or foreign objects on the
connector w ...