Below is a comprehensive diagnostic guide for P0345 (Camshaft Position Sensor B Circuit Malfunction) as it might apply to 2019–2024 Subaru Forester. The data you provided from NHTSA indicates no owner complaints and no recalls for this exact combination, so this guide relies on general Subaru Forester knowledge and standard OBD-II diagnostic practice, rather than recall/TSB specifics.
CODE MEANING AND SEVERITY
- Code definition: P0345 = Camshaft Position Sensor B Circuit Malfunction.
- Meaning in plain terms: The Powertrain Control Module (PCM) detected a problem in the electrical circuit for the Camshaft Position Sensor labeled as “B” (the Forester’s engine family typically has two cam sensors; B refers to one of them, often the second sensor or the sensor on the alternate cam).
- What this indicates: The PCM is not seeing a valid, consistent camshaft position signal from Sensor B. This can be caused by a faulty sensor, wiring/connectors, power/ground issues, or, less commonly, a PCM fault.
- Severity and vehicle behavior:
- Symptoms may include a MIL (Check Engine Light) illumination, hesitation, reduced power, rough idle, misfires, stalling, or no-start situations.
- The vehicle may enter a limp/limited-power mode to protect the engine, depending on other observed fault conditions.
- Driving with this code under certain conditions can risk further engine damage if timing is affected or misfire is occurring, so diagnostic and repair should not be indefinitely delayed.
COMMON CAUSES ON SUBARU FORESTER
- Faulty Camshaft Position Sensor B
- The sensor itself has failed or its output is out of spec.
- Wiring harness or connector issues
- Damaged, frayed, chafed, corroded, or loose wiring between the sensor and the PCM.
- Bad or corroded sensor connector, or improper pin seating.
- Power/ground problems
- Faulty 5-volt reference supply to the sensor, or a poor PCM ground or signal reference.
- Moisture ingress or contamination
- Water, oil, or dirt inside the sensor connector or sensor body causing erratic signals.
- Sensor mounting or mechanical issues
- Sensor misalignment, improper torque, or a damaged sensor mounting surface.
- Timing-related concerns (less common as a primary cause)
- In rare cases, severe timing chain/belt wear or a damaged tone ring can produce cam position irregularities interpreted as a sensor circuit fault, though more often this yields related timing/cycle codes.
- PCM/ECU fault
- A faulty PCM could misinterpret a good sensor signal, though this is less common than sensor/wiring faults.
SYMPTOMS TO EXPECT
- Check Engine Light (MIL) illuminated.
- Rough idle, misfires, or poor drivability (especially at certain RPMs or under load).
- Hesitation, stumble, or lack of power during acceleration.
- Difficulty starting or intermittent no-start conditions.
- Fuel economy fluctuations.
- In some cases, the engine may run in a degraded mode (limp mode) to protect tolerances.
DIAGNOSTIC STEPS
Note: Start with the simplest checks and progress to electrical/signal testing. Use a good quality scan tool with live data capability.
Step 1 – Retrieve and analyze codes
- Read DTCs and review freeze-frame data to determine engine RPM, load, throttle position, and other conditions when P0345 was captured.
- Check for related codes (P0340, P0341, P0344, P0347, P0335, P0336) that might indicate broader cam/crank sensor or timing system issues.
Step 2 – Visual inspection
- Inspect Camshaft Position Sensor B and its connectors for signs of damage, corrosion, oil contamination, or loose pins.
- Inspect wiring harness for chafing, pinch points, heat damage, or routing across moving components.
- If possible, clean and reseat the connector with dielectric grease to improve conductivity and moisture resistance.
Step 3 – Electrical checks (sensor side)
- Key-on, engine off: with a DMM, verify that the Camshaft Position Sensor B receives the proper reference voltage (often around 5V for many vehicles) and has a solid ground return.
- Check for continuity between the sensor harness and PCM connector, ensuring no opens or shorts to power/ground.
- If you have scope capability, inspect the sensor signal waveform while cranking/steady-state. A healthy cam sensor typically shows a clean, repeatable signal or waveform depending on sensor type (digital/analog). A noisy, low-amplitude, or missing signal indicates a faulty sensor or wiring issue.
Step 4 – Sensor testing
- Remove Camshaft Position Sensor B only if accessible and safe; test sensor resistance/specs per service manual (range varies by engine family; Subaru sensors commonly have a specific resistance range and a 5V reference).
- Compare measured resistance and operation against the specification. If out of spec, replace the sensor.
- Re-inspect the sensor mounting and re-connect the harness securely after testing.
Step 5 – Rule out related systems
- Crankshaft position sensor (P0335/P0336) and its circuit can influence cam signal interpretation; if both cam and crank sensors show irregularities, broader ECU timing/signal concerns may exist.
- Check engine oil level and condition (low or very high oil can affect cam phasing/timing components in some designs).
- Ensure battery voltage and charging system are healthy; poor voltage can cause sensor signals to fall outside expected ranges.
Step 6 – Functional testing after repairs
- Clear the DTCs and perform a road test or light-load test to verify if P0345 returns.
- Monitor live data to confirm Camshaft Position Sensor B signal is now clean and within expected parameters across RPM and load ranges.
Step 7 – If codes persist
- Re-check all wiring and connectors; look for secondary causes such as terminal damage or ground issues.
- Consider PCM/ECU concerns if all sensor and wiring tests pass but the code reappears; this step should be reserved for a qualified technician.
RELATED CODES
- P0340: Camshaft Position Sensor A Circuit Malfunction
- P0341: Camshaft Position Sensor A Circuit Range/Performance
- P0344: Camshaft Position Sensor Intermittent/No Signal
- P0345: Camshaft Position Sensor B Circuit Malfunction (focus of this guide)
- P0335: Crankshaft Position Sensor A Circuit Malfunction
- P0336: Crankshaft Position Sensor A Circuit Range/Performance
- P0330 (generic crank/cam sensor-related codes can appear in some sequences)
REPAIR OPTIONS AND COSTS (2025 PRICES)
Note: Prices vary by region, shop, and whether you use OEM vs aftermarket parts. The figures below are ballpark estimates to help planning.
Camshaft Position Sensor B replacement (sensor only)
- Parts: $25–$120 (OEM vs aftermarket; Subaru-branded sensors may be closer to the upper end)
- Labor: approximately 0.5–1.5 hours
- Typical total: $100–$250
Camshaft Position Sensor B replacement plus wiring connector/mini harness repair
- Parts: sensor plus any connector repair kit
- Labor: 1–2 hours
- Typical total: $150–$350
Wiring harness repair or sensor wiring rework
- Parts: minimal; mostly labor
- Labor: 1–3 hours depending on accessibility
- Typical total: $150–$500
PCM/ECU replacement (rare)
- Parts: PCM replacement can be expensive
- Labor: significant; often several hours plus programming
- Typical total: $600–$1500+ (depending on reprogramming needs)
Timing-related repairs (if suspected as contributing factor)
- If a timing chain/bollower/ adjusted alignment is needed, this becomes a major repair, often several hours to a day of labor, and can push total costs well above the sensor replacement alone.
Important note: If you suspect a timing-related issue or encounter extensive engine disassembly, consult a professional. The above estimates assume sensor or wiring faults as the primary cause and do not include major timing work.
DIY VS PROFESSIONAL
- DIY-friendly scenarios:
- The sensor is easily accessible on many 4-cylinder Subarus; if you can locate Camshaft Position Sensor B, disconnect the battery, unplug the connector, unbolt the sensor, swap in a new one, and re-seat connectors with a light amount of dielectric grease, this is feasible for a competent DIYer.
- Basic electrical testing (continuity, reference voltage, and simple waveform checks) can be done with a multimeter and/or OBD-II scanner with live data.
- When to call a professional:
- If the sensor is not easily accessible or if timing-related components are suspected.
- If electrical tests are inconclusive or you observe intermittent sensor signals or a suspicious PCM behavior.
- If you do not have the proper tools (scope/advanced scanner) or you are uncomfortable performing electrical diagnostics.
- If the car exhibits stalling at highway speed or a no-start condition after basic checks and you risk unsafe driving.
PREVENTION
- Regularly inspect sensor connectors and wiring
- Look for damaged insulation, corrosion, or loose connections; clean and reseat as needed.
- Protect electrical connections
- Use dielectric grease on connections to resist moisture and corrosion; ensure robust sealing in the engine bay.
- Maintain clean and dry engine environment
- Check for oil leaks that might contaminate the sensor or its connector; fix leaks promptly.
- Maintain battery health and stable charging
- A healthy electrical system helps sensors produce consistent signals.
- Use quality parts
- When replacing, use OEM or high-quality aftermarket cam sensor and connectors to reduce the risk of premature failure.
- Avoid excessive engine heat exposure near the sensor harness
- Route wiring away from hot components and verify harness clearance after service.
DATA LIMITATIONS AND DISCLOSURES
- Based on the provided NHTSA data for Subaru Forester (2019–2024), there are no owner complaints and no recalls listed for this combination. No recalls or TSBs are cited in the data you supplied.
- The diagnostic guidance provided here uses general automotive knowledge and standard diagnostic practices for camshaft position sensor circuitry. Individual vehicle nuances may apply, and Subaru service manuals should be consulted for engine-family-specific specs and procedures.
- If new recalls, TSBs, or official Subaru notices become available for this model/year, they could provide additional guidance or coverage for P0345.