1. Remove the screws.
2. Remove the rear flap.
3. Install in the reverse order of removal.
Mazda 6 Service Manual: Front/rear abs wheel-speed sensor inspection
Visual Inspection
Remove the wheel and tire, and inspect the sensor for looseness and damage.
Replace the sensor if necessary.
Clearance Inspection
Inspect the clearance between the wheel-speed sensor and the sensor rotor.
Clearance
0.3-1.1 mm {0.012-0.043 in}
Resistance Inspection
...
Mazda 6 Service Manual: Air intake actuator inspection
1. Connect battery positive voltage to terminal D or F and ground to terminal
F or D of the air intake actuator.
2. Verify that the air intake actuator operates as shown below.
If not as specified, replace the air intake actuator.
...