Skip to content
How it works: OBD error codes: what they mean and which part to replace
Engine and transmission (P) · generic code

P0340: Camshaft position sensor (CMP) – circuit

The camshaft sensor signal is missing or implausible.

Medium severityCan I drive? Briefly; risk of stalling and hard starting.

What P0340 means

The cam sensor tells the ECU which cylinder is on its compression stroke (for sequential injection). Many engines start without it, but with difficulty, and go into limp mode. On diesels, some engines won't start at all without the cam signal.

Symptoms

  • Hard starting (long cranking)
  • Engine in limp mode, lack of power
  • Sometimes stalls

Possible causes (most common first)

  1. Faulty sensor
  2. Wires / connector
  3. Damaged cam reluctor wheel
  4. Jumped timing (see P0016)

How to check, step by step

  1. Check the supply (5 V or 12 V), ground and signal
  2. Compare with the crankshaft signal (oscilloscope)
  3. Check the timing synchronisation if the sensor is good

How it's repaired

  • New sensor
  • Wiring
  • Adjusting / replacing the timing

Parts often replaced for P0340

Related codes

The descriptions are general. The same code may have particularities on certain engines; before replacing a part, check the diagnosis steps or ask a mechanic. Updated: 01.12.2026