P0340 Camshaft Position Sensor Fault - 2004 Ford Focus 2.0L Zetec Engine Diagnosis and Solutions
Hi everyone, I'm new here and recently experienced a return of the P0340 camshaft position sensor fault on my 2004 Ford Focus with a 2.0L Zetec engine. This issue first appeared several years ago — I took it to the dealership at that time, where they diagnosed the code as related to the camshaft position (CMP) sensor but confirmed the physical sensor was fine. They suspected interference from the Mass Airflow (MAF) sensor and cleared the code. After four years, the P0340 code returned. I've since tried measuring transmission solenoid resistance, which raised concerns about possible electrical shorts. Clearing the code initially helped — the check engine light would stay off for up to 300 miles — but over time, the intervals between occurrences got shorter. The vehicle now runs roughly with reduced power. I'm wondering if this could be due to: - A failing camshaft position sensor or wiring - Corroded or dirty electrical connections - Oil contamination from the valve cover seeping into the sensor - Low battery voltage affecting sensor readings (I cleaned corrosion and applied protective coating; battery fluid level appears normal) - Parasitic electrical draw causing intermittent power fluctuations I don't have any other active OBD2 codes currently, though I previously had a weak battery code that cleared after maintenance. The original dealer report from 2014 noted a baro reading of 137Hz (should be 158Hz), and the O2 sensor was functioning correctly at the time. They also performed a wiggle test on the harness, which didn't induce a fault. I don’t have access to live data or freeze frame files through my current OBD reader. Any insights into troubleshooting this P0340 issue specifically for 2004 Ford Focus models with 2.0L Zetec engines would be greatly appreciated.
Could you confirm the exact engine type (2.0L or 2.3L) and the 8th character of your VIN (e.g., 3, 5, P, Z)? Also, are there any other diagnostic codes present? What is the configuration of the camshaft position sensor — 2-wire or 3-wire? Are freeze frame data logs available in your OBD2 system? If so, what does the engine speed and sensor reading look like during fault conditions?