Fault code can be set also when there's an open circuit.
Either between ecu and sensor or between sensor and ground.
Remove connector from the coolant temp sensor.
Measure voltage in the connector with ignition on. 1 wire should be 5 volt.
The other wire should be ground.