Camshaft position sensor codes

The camshaft position sensor reads a target on the camshaft so the computer knows which stroke each cylinder is on. Together with the crankshaft sensor it lets the computer time fuel injection and, on engines with variable valve timing, measure actual camshaft position.

How its codes differ

  • P0340 (bank 1) and P0345 (bank 2) are circuit codes: the computer sees no signal or the wrong kind of signal, pointing to the sensor, its connector or wiring.
  • P0341 is a range or performance code: a signal is present but does not line up with the crankshaft signal, which can be the sensor, its target wheel, or the timing relationship itself.
  • P0016 and P0017 compare the crankshaft with a camshaft and say they are out of their expected relationship. A faulty camshaft sensor can cause this, but so can a stretched or jumped timing chain or a VVT fault.

Codes

  • P0340

    Camshaft position sensor circuit fault (bank 1 or single sensor)

    Severity: Inspect soon
  • P0341

    Camshaft position sensor signal out of expected range (bank 1 or single sensor)

    Severity: Inspect soon
  • P0345

    Camshaft position sensor A circuit fault (bank 2)

    Severity: Inspect soon
  • P0016

    Crankshaft and intake camshaft positions do not agree (bank 1, sensor A)

    Severity: Inspect soon
  • P0017

    Crankshaft and exhaust camshaft positions do not agree (bank 1, sensor B)

    Severity: Inspect soon

Signs it's failing

  • Check engine light
  • Hard starting or no-start
  • Stalling
  • Rough running

How to test it

  1. Inspect the sensor's connector and wiring for damage, oil in the connector or chafing. (Use caution)

    Warning: Do this with the engine off; moving belts and the fan can cause serious injury.

  2. Testing the signal with a scope or meter, or checking cam-to-crank timing, needs service information and is a job for a shop. (Best left to a shop)

    Warning: Timing checks involve rotating engine parts; leave them to a technician.

After the repair

  • Clear codes and confirm the engine starts promptly from cold and hot.
  • Check that correlation codes (P0016, P0017) have not returned after a drive.
  • Clear codes only after the repair, then drive normally over several days with both city and highway driving so the readiness monitors can complete; clearing codes or disconnecting the battery resets them to not ready, which fails an emissions test.

Sources and review

  1. Advanced Engine Performance Specialist Test (L1) Composite Vehicle Type 4 Reference Booklet — National Institute for Automotive Service Excellence (ASE)
  2. Cam / Crank Sensors — DENSO Auto Parts
  3. Final Regulation Order: 13 CCR §1968.2, Malfunction and Diagnostic System Requirements (OBD II), 2004 and subsequent model-year passenger cars, light-duty trucks and medium-duty vehicles (2015 amendments) — California Air Resources Board
  4. On-Board Diagnostic Trouble Codes (generic code title list) — Delaware Division of Motor Vehicles
  5. OBD Vehicle 'Readiness' Fact Sheet (E-Check) — Ohio Environmental Protection Agency
Last reviewed
Written by
Saurabh K.
Editorial review
Pending
Technician review
Technician review pending

This page explains what a code usually means; it is not a substitute for a professional inspection. How we source and review · Report an error

My Car

Pick your car and code pages will point out notes and bulletins for it. Saved only in this browser.

Fill this in from your VIN

Used once to identify your engine; not stored.