1. Connect WDS or equivalent to the vehicle DLC-2 16-pin connector located as shown in the figure.

2. Perform KOEO/KOER self-test.
After repair procedureMazda 6 Service Manual: Electrical parts
Battery cable
Before disconnecting connectors or removing electrical parts, disconnect
the negative battery cable.
Wiring Harness
To remove the wiring harness from the clip in the
engine room, pry up the hook of the clip using a
flathead screwdriver.
...
Mazda 6 Service Manual: Transaxle fluid temperature (tft) sensor removal/installation
Warning
When the transaxle and ATF are hot, they can badly burn. Turn off
the engine and wait until they are cool before replacing the ATF.
1. Remove the oil pan. (See CONTROL VALVE BODY REMOVAL.)
2. Disconnect the TFT sensor connector.
3. Remove the TFT sensor.
4. Install a TFT senso ...