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

Water temperature sensor removal/installation
Refrigerant pressure switch removal/installationMazda 6 Service Manual: Engine Coolant Temperature Gauge (Without Multi-information Display)
Displays the engine coolant temperature. The white gauge indicates that the engine
coolant temperature is low, and the red gauge indicates that the engine coolant
temperature is high and overheating.
CAUTION
If the engine coolant temperature gauge indicator flashes, there is a possibility
...
Mazda 6 Service Manual: Dtc c1148, c1158, c1168, c1178, c1233, c1234, c1235, c1236
Caution
When attaching the tester lead to the ABS (ABS/TCS) HU/CM harness
connector, the SST (49 G066 001) must be used. (See ABS (ABS/TCS) HU/CM
INSPECTION.)
Diagnostic procedure
...