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
$134–$322A failed sensor makes it hard to start and run rough.
Wiring or connector
$140–$315A broken wire looks exactly like a failed sensor.
Timing chain wear
$1,132–$2,500If the chain is stretched, the cam really is in the wrong place.
Code titles are the generic SAE definitions. Prices are typical US parts and labor for a common car or light truck – a guide for judging a quote, not a quote. Always confirm a repair against the vehicle in front of you.