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
Outline
There are two on-board diagnostic functions: Operation mode, which
inspects for and indicates correct operation of the input signals to the
control module, and condition detection mode, which indicates troubles in
the system.
The two functions can be done using either of the f ...
Mazda 6 Service Manual: Expansion valve removal/installation
1. Disconnect the negative battery cable.
2. Discharge the refrigerant from the system. (See RECOVERY.) (See CHARGING.)
Caution
If moisture or foreign material enters the refrigeration cycle,
cooling ability will be lowered and abnormal noise will occur. Always
immediately plug open fitt ...