1. Measure the temperature around the cabin temperature sensor.
2. Measure the resistance between terminals of the cabin temperature sensor.

Cabin temperature sensor removal/installation
Evaporator temperature sensor removal/installationMazda 6 Service Manual: Manual Transaxle Shift Pattern
The shift pattern of the transaxle is conventional, as shown.
Depress the clutch pedal all the way down while shifting; then release it slowly.
Your vehicle is equipped with a device to prevent shifting to R (reverse) by mistake. Push the shift lever downward and shift to R.
...
Mazda 6 Service Manual: Rear Window Defogger
The rear window defogger clears fog from the rear window.
The ignition must be switched ON to use the defogger.
Press the switch to turn on the rear window defogger. The rear window defogger
operates for about 15 minutes and then turns off automatically.
The indicator light illuminates when the ...