Diagnostic codes come from the car's computer sensors. Each sensor has a specific code for issues. If there's a problem, the check engine light turns on to warn the driver.But, a faulty sensor might give a bad code, even if it's broken. To check if a sensor is faulty, clear the codes and see if the light comes back. Using a tool like GOFAR can give more info on over 300 common car faults.