Note
1. Open the bonnet.
2. Disconnect the negative battery cable.
3. Remove the radiator grille.
4. Disconnect the bonnet switch connector.
5. Check the continuity between the bonnet switch terminals A and B using an ohmmeter.

6. Lock the bonnet lock using a flat-head screwdriver or equivalent as shown.

7. Check the no continuity between the bonnet switch terminals A and B using an ohmmeter.
Caution
Theft-deterrent control module removal/installationMazda 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: Adaptive Front Lighting System (AFS) (Some models)
The adaptive front lighting system (AFS) automatically adjusts the headlight
beams to the left or right in conjunction with the operation of the steering wheel
after the headlights have been turned on and the vehicle speed is about 2 km/h (2
mph) or higher.
A system malfunction or operation c ...