P0340 – Camshaft position sensor problem
Camshaft position sensor A circuit (Bank 1 or single sensor)
Ignition and misfires · generic OBD-II code
You can drive it, but take it easy and get it looked at soon – waiting usually makes the repair bigger.
Check this first
Check the connector at the sensor, then the oil level – some engines use oil pressure to move the cam.
What usually fixes it
In the order a good shop checks them. Typical total: $119–$2,500 at $130 an hour.
Camshaft position sensor
A failed sensor makes it hard to start and run rough.
Wiring or connector
A broken wire looks exactly like a failed sensor.
Timing chain wear
If the chain is stretched, the cam really is in the wrong place.
What the vehicle can tell you itself
A stored code is a headline, not the story. The vehicle also holds the conditions when it happened, how close the part is to the limit it fails at, what the fuel trims are doing, and whether the fault is still happening right now. Drive DTC reads all of it with a USB adapter and a Windows PC – and it can't change a single setting on the vehicle.
See what your vehicle says about P0340
Codes in plain English, what usually causes them, what the repair costs, and whether it's safe to drive.