Move the float to the topmost and bottommost positions, and verify that the resistance between terminals A and B of the unit and the position of the float are as indicated in the figure.

Pid/data monitor and record procedure
Oil pressure switch inspectionMazda 6 Service Manual: Foreword
Caution
When the engine does not start or stalls and the following DTCs
are not indicated, go to engine symptom troubleshooting.
Note
When the immobilizer system is defective, the engine cannot be
started.
If engine condition is normal but light stays on, inspect for
short circ ...
Mazda 6 Service Manual: Thermostat
THERMOSTAT REMOVAL/INSTALLATION
1. Remove the plug hole plate.
2. Disconnect the negative battery cable.
3. Drain the engine coolant. (See COOLING SYSTEM SERVICE WARNINGS.)
4. Remove the drive belt. (See DRIVE BELT REPLACEMENT.)
5. Remove the washer tank.
6. Remove the P/S oil pump.
Note
...