1. Disconnect the negative battery cable..
2. Remove the cargo compartment light..
3. Remove the cargo compartment light bulb.

4. Install in the reverse order of removal.
Auto Leveling Sensor Removal/Installation
Cargo Compartment Light InspectionStop Vehicle in Safe Place Immediately
If any of the following warning lights turns on, the system may have a
malfunction. Stop the
vehicle in a safe place immediately and contact an Authorized Mazda Dealer.
...
Identification Number Locations
Vehicle Identification Number (VIN)
Engine Type/Number
MZR 2.0, MZR 2.5
MZR 2.3 DISI Turbo
SKYACTIV-G 2.0
...
Illuminated Entry System
When the illuminated entry system
operates, the overhead light (switch is in
the DOOR position) turn on for:
About 30 seconds after the driver's door
is unlocked and the ignition is switched
off.
About 15 seconds after all doors are
closed and the ignition is switched off.
About 5 se ...