I had this with a Fusion at work. Replaced the sensor and it had 2 codes. Put them codes into Google and it will link you to ecu testings website.
The ecu is faulty and needs a repair. We even sent the clock away to another firm. Only after did I Google the codes and find out about the ecu.