Heads up: some links on this site are affiliate links. If you buy through them we may earn a small commission at no extra cost to you.
Home › Repair Guides › Replace a Cam or Crank Position Sensor
Medium

Replace a Cam or Crank Position Sensor

Stalling, no-start or codes P0335 / P0340 often point to one of these sensors.

⏱ Time: 30 min–2 hrs💰 Save $100–300 vs. a shop🧰 3 tools

▶ Watch the video

The whole job in under a minute. Then follow the full steps below. More on TikTok and YouTube.

⚠️ Safety first

Disconnect the negative battery cable. Crank sensors are often low near the transmission; support the car on jack stands if you go underneath.

Tools you'll need

Parts

Step by step

  1. Confirm the code and which sensor it names (cam sensors may be numbered by bank).
  2. Disconnect the negative battery cable.
  3. Find the sensor. Cam sensors are usually on the cylinder head or timing cover; crank sensors are near the front pulley or where the engine meets the transmission.
  4. Unplug the connector, remove the bolt and twist the sensor out gently.
  5. Lightly oil the new sensor's O-ring, install it, and torque the bolt to spec.
  6. Reconnect the connector and battery, clear the codes and test-drive.
  7. Some vehicles need a crank position relearn with a scan tool. Check your manual if a code returns.

Pro tip

Inspect the connector and wiring for oil or damage. A bad connection causes the same codes as a bad sensor.

Related check engine codes

Want this guide printable?

The DIY Maintenance Pack has this checklist and 25 more, plus a maintenance schedule, seasonal checklists and a service log, in one 53-page PDF for $6.99.

Get the pack for $6.99

More repair guides

This guide is general information. Procedures, fluid types and torque specs vary by vehicle; check your owner's manual or a repair manual for your exact vehicle. If you're unsure about any step, see a certified mechanic.