01 Fuel Pump Replacement Guide: What Else to Replace • 02 This is Why Your Windshield Wipers Don't Work at Same Speed? • 03 How Naturally Aspirated Engines Differ From Turbo Engines • 04 How to Read & Understand Live Data Streams from Your Car’s … • 05 What Happens If You Don't Change the Oil in Your Car? • 06 This Is Why Your Car’s Engine Oil Turns Black So Fast • 07 Charging Anxiety vs. Green Future: Why Americans Aren't Buy… • 08 Is Your Car Blowing Hot Air? Signs of a Failing Air Conditi… • 09 Experts Warn Ignoring A Weak Ignition Coil Could Leave Your… • 10 Pulling to One Side: Troubleshooting Uneven Brake Performan… •

DTC codes / Ford codes / P1340

P1340 · FordCamshaft Position Sensor B Circuit Malfunction

P1340 on Ford vehicles means the powertrain control module (PCM) has detected an electrical fault in the circuit for camshaft position sensor B, which on many Ford engines is the exhaust cam sensor on the right-hand bank. The PCM monitors the signal voltage and flags the code when the circuit is open, shorted to ground or power, or the signal is missing or erratic when the engine is running.

SystemPowertrain
Code typeFord specific
SeverityMedium
Fix difficultyIntermediate
AreaIgnition system and misfire

Symptoms you may notice

  • Illumination of the check engine light, often with no other symptoms besides the warning light
  • Rough idle or intermittent misfire as the PCM loses accurate camshaft timing information
  • Reduced engine power or limp-home mode on some models
  • Hard starting or extended cranking, especially when the engine is cold
  • Poor fuel economy or increased emissions due to incorrect variable cam timing scheduling
  • Occasional stalling when coming to a stop, particularly on engines with variable valve timing

Common causes, most likely first

  1. Failed camshaft position sensor B due to heat, oil contamination, or internal winding failure
  2. Damaged or chafed wiring harness between the sensor and PCM, often near the exhaust manifold or valve cover
  3. Corroded, loose, or pushed-back pins in the sensor connector or PCM connector
  4. Oil or debris fouling the sensor tip or the tone ring on the camshaft, disrupting the magnetic signal
  5. Failed or leaking variable cam timing solenoid affecting camshaft phaser position and sensor signal
  6. PCM internal fault on the sensor input circuit, though this is rare and should be diagnosed last
  7. Aftermarket sensor with incorrect resistance or output waveform installed during a previous repair

How to diagnose and fix it

  1. Connect a scan tool and record all stored and pending codes, then check live camshaft position sensor B data while cranking and running to confirm the signal is missing or erratic
  2. Visually inspect the sensor, connector, and wiring harness for chafing, oil intrusion, corrosion, or loose pins, and repair any obvious damage before replacing parts
  3. Measure sensor resistance and compare to Ford specifications for the engine, and check reference voltage and ground at the connector with the key on
  4. Perform a wiggle test on the harness while watching sensor data to expose intermittent opens or shorts that only appear under vibration
  5. Remove the sensor and inspect the tip and tone ring for metal shavings, sludge, or mechanical damage, cleaning or replacing as needed
  6. If the circuit and sensor test good, scope the signal waveform at the PCM to confirm the sensor output is clean and the fault lies in the PCM or harness
  7. After repair, clear codes and run a drive cycle that includes idle, steady cruise, and variable cam timing activation to verify the code does not return

What Ford techs check before replacing the sensor

  • A loose or failing variable cam timing solenoid can set P1340 because the phaser moves the camshaft to a position the sensor cannot read correctly, so always check VCT solenoid function and oil condition before condemning the sensor.
  • Oil leaks from the valve cover gasket or camshaft seal often contaminate the sensor connector and cause intermittent P1340, and the code may not return until the engine heat-soaks after a long drive.
  • On Ford engines with two cam sensors per bank, swapping sensor B with sensor A is a quick diagnostic step: if the code follows the sensor, the sensor is faulty, but if it stays on the same circuit, the wiring or PCM is at fault.
  • A weak battery or poor engine ground can cause a crank-no-start with P1340 because the PCM loses its reference during cranking, so load-test the battery and check grounds before chasing sensor circuits.
  • Aftermarket cam sensors for Ford engines are a common source of repeat P1340 codes because their output waveform does not match the PCM's expected profile, so use a known-good OEM sensor for diagnosis.

Can I keep driving with P1340?

You can usually drive the vehicle to a repair shop, but avoid heavy acceleration, towing, or long trips because the PCM may be running on default cam timing, which can cause poor performance and increased emissions. If the engine runs rough, stalls, or enters limp mode, stop driving and have it diagnosed promptly.

Guidance is general and written for Ford vehicles. Exact tests and values vary by model, so confirm the fault before replacing parts.

Running on fumes Free guides aren't free to make. Top up the tank. Any amount, one time. Fuel the Garage