The HC PPM is extremely high. That usually indicates unburned fuel. Have you checked fuel pressure? The regulator may be causing pressure to be too high. Also, a faulty engine coolant temp can cause the air fuel mixture to be off. There are other things such as a faulty intake air temp sensor, a leaking injector and so on.
Does it have a rough idle? Have you ever noticed black smoke from the exhaust?
Tell me. Do you have a live data scanner? If you do, can you tell me the short term fuel trims (STFT)? Also, can you confirm the engine coolant temperature sensor is reading properly?
You listed above code P40. The code should be a P and then 4 numbers. Let me know if you remember what it was.
Keep in mind, this could even be a plugged air filter. I attached a pic below indicating what can cause high hydrocarbon (HC) readings. Take a look through it.
Let me know if any of those things have been checked and if any different codes have been present.
Friday, May 29th, 2020 AT 7:33 PM