P0340 Code: Camshaft Position Sensor A Circuit (Bank 1)
P0340 means a fault in the camshaft position sensor circuit — the sensor the ECM uses to identify cylinder timing.
- Applies to
- All OBD-II vehicles (any make or model)
- Est. repair cost
- $100 – $500
- Time to fix
- 1-3 hours
What it means
Common causes are a failed cam sensor, wiring/connector faults, or a timing/VVT problem. This is a generic OBD-II powertrain code defined in the SAE J2012 standard, so it applies to virtually any 1996-or-newer OBD-II vehicle — cars, trucks, and modern fuel-injected motorcycles — from any manufacturer (Toyota, Honda, Ford and the rest). Read it with any OBD-II scanner; the meaning is the same across brands, though the exact repair can vary by engine.
Symptoms
- Check engine light on
- Hard starting or no-start
- Stalling or rough running
How to fix it
- 1
Test the cam sensor and wiring
1. Inspect the cam sensor connector and wiring. 2. Test the sensor; check for timing issues. 3. Replace if faulty, then clear the code.
Frequently asked questions
Is P0340 the same as P0335?
Related but not the same — P0340 is the camshaft sensor, P0335 the crankshaft sensor. Both feed engine timing; both can cause hard starts.
Last updated July 16, 2026
Guidance only — always consult a qualified professional or the official service manual before carrying out repairs.