Codes › P0340
P0340: Camshaft position sensor A circuit (bank 1 or single sensor)
Powertrain (engine and transmission) · Ignition system or misfire · Standard code (the same on every make)
What it means
The camshaft position sensor tells the engine computer which stroke each cylinder is on, so it can time the injectors and, on many engines, the spark. P0340 means the signal is missing or wrong; the related codes narrow it down (range, low, high, intermittent) and name the bank and sensor (A is usually intake, B exhaust).
This guide also covers: P0341 (Camshaft position sensor A circuit range / performance (bank 1)); P0342 (Camshaft position sensor A circuit low (bank 1)); P0343 (Camshaft position sensor A circuit high (bank 1)); P0344 (Camshaft position sensor A circuit intermittent (bank 1)); P0345 (Camshaft position sensor A circuit (bank 2)); P0346 (Camshaft position sensor A circuit range / performance (bank 2)); P0347 (Camshaft position sensor A circuit low (bank 2)); P0348 (Camshaft position sensor A circuit high (bank 2)); P0365 (Camshaft position sensor B circuit (bank 1)); P0366 (Camshaft position sensor B circuit range / performance (bank 1)); P0390 (Camshaft position sensor B circuit (bank 2))
Symptoms
- Long cranking before the engine starts
- Stalling or hesitation
- Rough running or lower power; some engines start but run in a backup mode
Common causes
- Failed camshaft position sensor
- Wiring or connector damage, or oil leaking into the connector
- Timing chain or belt stretched, slipped or installed one tooth off (especially with P0341 or timing codes)
- Damaged reluctor on the camshaft
How to diagnose it
- Check for other codes: cam and crank correlation or camshaft timing codes together point toward timing rather than the sensor.
- Inspect the connector for oil, corrosion and bent pins.
- Test the sensor's power, ground and signal; compare the cam and crank signals on a scope if you can.
- If the timing chain or belt was recently replaced, verify the timing marks.
Calculators that help with this code
Diag Hive tools that put numbers on the diagnosis.
Is it safe to drive?
Often yes for a short distance, but the engine may stall or not restart. Have it checked soon.
Got this code right now? Diag Hive reads your car's codes with an OBD-II adapter, shows the freeze frame, and its AI tells you what to check first on your vehicle.
Other guides
P0420Catalyst system efficiency below threshold (bank 1)P0300Random / multiple cylinder misfire detectedP0171System too lean (bank 1)P0172System too rich (bank 1)P0442EVAP system leak detected (small leak)P0128Coolant temperature below thermostat regulating temperature
More tools in Diag Hive
Read the codes on your carPlug in an OBD-II adapter and Diag Hive reads stored, pending and permanent codes, with their meanings.In Diag Hive →Ask the AI about your codesThe AI explains what your codes mean for your exact vehicle and what to check first.In Diag Hive →ABS, airbag & transmission codesScan the other modules too, not just the engine (beta).In Diag Hive →Freeze frame & readinessSee the conditions when a code set, and whether the car is ready for an emissions inspection.In Diag Hive →MAF & volumetric efficiency checkCompare your MAF reading with what the engine should be breathing, from live data.Coming soon to Diag HiveCam & crank timing calculatorTurn a scope's cam/crank offset in milliseconds into crankshaft degrees.Coming soon to Diag Hive
Other free tools
- acdiagnostics.app: AC pressure diagnosis & PT chart
- gearratio.app: Gear ratio, RPM & tire size