Go-Parts
Cart 0
Your cart is empty
Add an item to see it appear here.
Wrenchy
Go-Parts Garage
Expert guides for diagnosing, troubleshooting, and replacing auto parts Expert guides for diagnosing and replacing auto parts
Browse All →
🎬 Helpful Videos 🛍️ Shop This Part

P0331 on 2005-2010 Scion tC 2.4L: Knock Sensor Circuit Causes and Fixes

On a 2005-2010 Scion tC, P0331 almost always means the single knock sensor has failed or its wiring is damaged. Rodents chewing the wiring is a surprisingly common cause. The sensor is difficult to access behind the intake manifold, making replacement labor-intensive. Expect a shop repair to cost between $470 and $770. Due to the labor, using an OEM or Denso sensor and replacing the short wire harness at the same time is highly recommended.

20 minutes to read 2005-2010 Scion tC
Most Likely Cause
Faulty Knock Sensor
Difficulty
4/5
Est. Time
3.8 hrs
DIY Doable?
🔧 Shop
Shop Labor
$470 – $770
Parts Price
$140 – $300
⚠️ Drivable, but... — You can drive, but it's not recommended for long periods. The PCM will enter a fail-safe mode with reduced power and potentially retarded timing to protect the engine, but its ability to prevent damaging detonation is compromised. Long-term driving could lead to poor fuel economy and sluggish performance.
Key Takeaways
  • P0331 on this car points to a problem with the single knock sensor or its wiring, despite the 'Sensor 2' in the code name.
  • The most difficult part of the repair is removing the intake manifold to access the sensor, which significantly increases labor costs.
  • Due to the high labor cost, it is wise to use a high-quality OEM or Denso sensor and replace the short wiring pigtail at the same time to avoid a repeat repair.
  • Always replace the intake manifold gaskets when performing this job to prevent future vacuum leaks.
  • Check for rodent damage to the wiring harness, as this is a very common cause of this code on 2AZ-FE engines.
P0331 stands for "Knock Sensor 2 Circuit Range/Performance". The 2.4L 2AZ-FE engine in your Scion tC only has one physical knock sensor, so the "Sensor 2" designation can be confusing. It means the Powertrain Control Module (PCM) has detected that the signal from the single knock sensor is erratic, intermittent, or outside its expected performance range. The knock sensor's job is to listen for engine knock (detonation) and send a voltage signal to the PCM, which then adjusts ignition timing to prevent engine damage. This code indicates that the system is not operating reliably, forcing the ECU into a safer, low-performance mode.

What's Unique About the 2005-2010 Scion tC

The main challenge on the Scion tC is the location of the knock sensor. It is bolted to the back of the engine block, buried underneath the intake manifold. This turns a relatively inexpensive part into a labor-intensive repair, as the entire intake manifold must be removed for access. While the code says "Sensor 2," these cars only have one sensor; the code is a generic SAE definition being applied to a single-sensor circuit. Many owners find that rodents have chewed the sensor's wiring harness, which is a common point of failure on 2AZ-FE engines due to its location.

Symptoms You May Notice

  • Check Engine Light is on
  • Reduced engine power and sluggish acceleration
  • Decreased fuel economy
  • Audible engine pinging or knocking, especially under load
  • Engine hesitation
⚠️ Don't Waste Money on the Wrong Fix
  • Replacing spark plugs or ignition coils without diagnosing the knock sensor circuit first. While these can cause knocking, they typically set other codes (like P030x misfire codes).
  • Replacing the knock sensor without replacing the short, brittle wiring harness that connects to it, leading to the code returning.
  • Improperly repairing a rodent-damaged wire without restoring the electrical shielding, which leads to signal interference and a persistent code.

Most Likely Causes

  1. Faulty Knock Sensor 🔴 High Probability The sensor is subjected to intense heat and vibration cycles, leading to internal failure of the piezoelectric element over time. It's a common failure item on high-mileage 2AZ-FE engines.
    How to confirm: After confirming wiring is intact, the most definitive test is to replace the sensor. Resistance can be tested with a multimeter after removing the intake manifold for access; a reading outside the manufacturer's specification indicates failure. The specific resistance for the 2AZ-FE sensor should be 120 to 280 kΩ at 20°C (68°F).
    Typical fix: Replace the knock sensor. Since the intake manifold must be removed, it is highly recommended to replace the intake manifold gaskets and the short knock sensor wire harness (pigtail) at the same time to prevent future issues and vacuum leaks.
    Est. part cost: $30-$260
  2. Damaged Wiring or Connector 🟡 Medium Probability The wiring harness runs in a high-heat area behind the engine. More commonly, the soy-based wiring insulation used by Toyota during this era is attractive to rodents. Many owners discover wires chewed completely through at the sensor connector or along the sub-harness.
    How to confirm: Visually inspect the harness from the sensor to the main loom for any signs of damage, melting, or tell-tale signs of rodents (chew marks, droppings). A continuity test with a multimeter is necessary if damage is suspected but not visible. The wire is shielded to prevent electrical interference; improper repair of the shield can cause the code to persist.
    Typical fix: Repair the damaged section of the wire or, more reliably, replace the entire knock sensor connector pigtail/sub-harness. Splicing shielded wires requires care to avoid signal interference.
    Est. part cost: $15-$50

Rare But Worth Checking

  • Faulty Powertrain Control Module (PCM): This is very rare. The knock sensor and its wiring should be thoroughly tested before considering the PCM as the cause.
  • Excessive Engine Vibration: Severe vibrations from other issues like worn engine mounts or a persistent misfire can sometimes generate erratic signals that the PCM interprets as a sensor fault.

Diagnosis Steps

  1. Read the code with an OBD-II scanner and confirm P0331 is present. Note any other codes, especially P0327 or P0328.
  2. Clear the codes and perform a test drive to see if the code returns immediately. This helps confirm a hard fault.
  3. Visually inspect the area around and behind the intake manifold for signs of rodent damage to the wiring harness. This is a very common cause.
  4. If access is possible, check the knock sensor connector for corrosion or damage. However, full access typically requires removing the intake manifold.
  5. Remove the intake manifold assembly. 🎬 See this step-by-step guide for removing the intake manifold. This is a multi-hour job requiring care. Label all vacuum lines and connectors.
  6. Once the manifold is off, closely inspect the knock sensor and its short wiring harness for breaks, melting, chafing, or chew marks.
  7. Disconnect the sensor. Test its internal resistance with a multimeter. The correct reading should be between 120 and 280 kΩ at room temperature. An open circuit (infinite resistance) or a reading far outside this range indicates a faulty sensor.
  8. Test the wiring harness. With the sensor unplugged and ignition ON, check for a reference voltage of 4.5 to 5.5 V between terminals KNK1 and EKNK on the harness-side connector. Also test for continuity from the sensor connector to the main engine harness plug. Repair or replace the harness if any open or short circuits are found.
  9. If the sensor and wiring test good, the fault may lie with the PCM, but this is extremely uncommon.

Parts You'll Likely Need

  • Ignition Knock (Detonation) Sensor (OEM #89615-06010) — This is the most common failure point for code P0331. The original part number may have been 89615-20090, which was superseded by 89615-06010.
    Trusted brands: Denso (OEM Manufacturer), NTK, Standard Motor Products
    OEM price range: $119-$261
    Aftermarket price range: $30-$125
  • Intake Manifold Gasket Set (OEM #17177-28040) — The intake manifold must be removed to access the knock sensor. The gaskets are single-use and must be replaced to prevent vacuum leaks.
    Trusted brands: Fel-Pro, Mahle, Toyota OEM
    OEM price range: $20-$40
    Aftermarket price range: $10-$25
  • Knock Sensor Wire Harness / Connector (OEM #82219-48010 (Harness often sold with sensor in kits)) — This short harness between the sensor and the main engine loom is prone to heat damage and rodent damage. It is wise to replace it during the job. Aftermarket pigtails like Standard Motor Products S2328 are also available.
    Trusted brands: Toyota OEM, Standard Motor Products, Dorman
    OEM price range: $25-$60
    Aftermarket price range: $15-$30

Related Codes That Often Appear With This One

  • P0327 — This code indicates 'Knock Sensor 1 Circuit Low Input', which points to a similar electrical fault within the same circuit, often a short or open.
  • P0328 — This code indicates 'Knock Sensor 1 Circuit High Input', also pointing to an electrical fault in the knock sensor circuit, often seen when wires are chewed.

Technical Service Bulletins (TSBs) & Recalls

  • T-SB-0094-11 (Rev2): Details the repair procedure for excessive oil consumption, which involves replacing pistons and rings.
  • S-SB-0031-14 (Rev1): Outlines the inspection procedure for confirming excessive oil consumption on the Scion tC and xB.
  • ZE7 Warranty Enhancement: Toyota extended the warranty to cover repairs for the excessive oil consumption issue.

Platform-Specific Known Issues

  • The 2AZ-FE engine was subject to a warranty enhancement program for excessive oil consumption (TSB S-SB-0031-14, T-SB-0094-11). While not directly causing P0331, severe oil consumption can lead to carbon buildup and conditions that may cause detonation, which the knock sensor is designed to detect.

Mechanic-Grade Diagnostic Values

  • Knock Sensor Internal Resistance — expected: 120 to 280 kΩ at 20°C (68°F). Failure: A reading of infinity (open circuit) or a value significantly outside the specified range.
  • Knock Sensor Harness Voltage — expected: 4.5 to 5.5 V. Failure: Voltage below 4.5V or above 5.5V indicates a problem in the wiring or the ECM.
  • Scan Tool Live Data: Knock Feedback Value — expected: The value should change dynamically while driving under varying loads (e.g., A/C on, revving engine).. Failure: A static or unchanging value suggests the sensor or circuit is not responding.
  • Wiring Harness Continuity (ECM to Sensor) — expected: Less than 1 Ω on signal and ground wires.. Failure: High resistance or an open circuit (OL) indicates a broken wire.
  • Wiring Harness Short to Ground (Signal Wire) — expected: Greater than 1 MΩ between the KNK1 terminal and chassis ground.. Failure: Low resistance indicates a short circuit in the harness.

Scan Tool Commands That Help

  • Toyota Techstream: Data List > Powertrain / Engine > "Knock Feedback Value" — This is a critical live data PID to monitor during a test drive. A healthy sensor circuit will show fluctuating values as the ECM adjusts timing. A static value points to a fault in the sensor or wiring.
  • Generic OBD-II Scanner: Read Freeze Frame Data — When P0331 is set, freeze frame data captures the engine conditions (RPM, load, speed, etc.) at that moment. This is useful for determining if the fault occurs under specific conditions, like high RPM or heavy load.

Wiring & Ground Locations

  • Knock Sensor Connector (B18) — On the back of the engine block, underneath the intake manifold.. This is the primary connection point for the sensor. It's a common spot for rodent damage and heat-related wire degradation. Pin 1 is EKNK (sensor ground), Pin 2 is KNK1 (signal).
  • ECM Pin KNK1 — At the main Engine Control Module (ECM), located behind the glove compartment.. This is the terminal where the knock sensor's signal wire terminates. Testing for continuity between this pin and the sensor connector pin is a key diagnostic step.
  • ECM Pin E1 — At the main Engine Control Module (ECM).. This is the sensor ground terminal in the ECM for the knock sensor circuit.
  • Engine Ground Points E3, Ed, Ee — Various points on the rear of the engine block and cylinder head. E3 is top rear, Ed is left rear, Ee is on the rear.. A poor engine ground can introduce electrical noise and cause the entire sensor system, including the knock sensor, to malfunction and report false or erratic readings.
  • Main Battery Ground — One primary ground cable runs from the battery negative terminal to a point under the starter on the transmission/engine block; another goes to the chassis under the battery tray.. These are the main ground paths for the entire vehicle. Corrosion or a loose connection at these points can cause a wide range of difficult-to-diagnose electrical issues, including sensor codes.

Real Owner Repair Stories

  • Camry Forums user (2007 Toyota Camry 2.4L (2AZ-FE engine)) — Check Engine Light with code P0328 (High Input), which is related to P0331.
    ❌ Tried (didn't work) Initially soldered a new pigtail connector onto the harness after discovering rodent damage. The code persisted.
    ✅ What actually fixed it The user discovered the original wiring was shielded. The initial repair did not properly address the shielding, which is critical for preventing electrical interference that can cause high/low input codes. The fix requires either replacing the harness section with a properly shielded wire or carefully repairing the original shielded wire to ensure continuity of the shield to ground.
  • Cobalt SS forum user (Cobalt SS with LNF engine (tuned, ~23 psi boost)) — Intermittent P0331 code with slight power loss.
    ❌ Tried (didn't work) Added fuel additive/octane booster, which only made the code go away temporarily. Visually inspected and tested the sensor and wiring, which all appeared to be good.
    ✅ What actually fixed it The owner switched to a one-step colder spark plug (NGK LTR6IX-11). This resolved the code, indicating the sensor was correctly detecting minor detonation (knock) caused by the existing plugs being too hot for the tuned application.

OEM Part Supersession History

  • 89615-2009089615-06010 — Standard part number consolidation and potential minor design revision by Toyota.
    Heads up: None. The new part number (89615-06010) is the correct and direct replacement for the original.

Diagnostic Flowchart

This guide assumes P0331 is the primary code. This code indicates a circuit performance issue, not that engine knock is occurring. The most common causes on the 2AZ-FE are rodent-damaged wiring or a failed sensor, both located under the intake manifold.
Perform a thorough visual inspection of the engine bay, focusing on the wiring harness behind the intake manifold. Do you see any signs of rodent damage (chewed wires, droppings, nesting material)?
→ The cause is almost certainly the wiring. The soy-based insulation used on the 2AZ-FE is a known attractant for rodents. Repair the damaged section or, for a more reliable fix, replace the knock sensor sub-harness (pigtail). Ensure any shielded wires are repaired correctly to avoid signal interference.
The knock sensor and its connector are located under the intake manifold on the 2AZ-FE engine. Are you prepared to remove the intake manifold to continue diagnosis? This is a multi-hour job.
With the intake manifold removed, disconnect the knock sensor. Using a multimeter, what is the resistance reading across the sensor's terminals?
The sensor appears good. Now test the harness-side connector. With the sensor unplugged and ignition ON (engine OFF), is there a reference voltage of 4.5 to 5.5 V between terminals KNK1 and EKNK?
→ The sensor and harness voltage test good. The fault may be an intermittent connection or, in very rare cases, the PCM. Double-check the wiring for less obvious damage (chafing, melting) and ensure the connector pins are clean and tight before considering a PCM issue.
→ The wiring harness has a fault. Check for continuity from the sensor connector back to the main engine harness plug and the PCM. Repair any open or short circuits found. This confirms the issue is in the wiring, not the sensor itself.
→ The knock sensor has failed. Replace the sensor. It is highly recommended to also replace the short pigtail harness and the intake manifold gaskets at the same time to prevent future vacuum leaks and wiring issues.
→ Further diagnosis requires accessing the sensor and harness under the intake manifold. At this point, it is recommended to seek assistance from a qualified mechanic.
→ An intermittent fault suggests a wiring issue. Carefully inspect the entire knock sensor harness for signs of chafing where it might rub against the engine block or other components. A loose or corroded connector pin could also be the cause. Wiggling the harness with the engine running (use caution) may help pinpoint the location of the fault.

Other Known Issues on This Vehicle

Issues unrelated to this code that are worth knowing about as an owner of this generation:

  • Excessive Oil Consumption 🔴 High — Very common on 2006-2011 models. Caused by defective piston ring design. Owners may need to add a quart of oil every 1,200-1,500 miles. (Ref: T-SB-0094-11, S-SB-0031-14, Warranty Extension ZE7)
  • Stripped Cylinder Head Bolt Threads 🔴 High — A known design flaw, particularly in earlier 2AZ-FE blocks (approx. 2002-2006), where the rear head bolt threads in the aluminum block can pull out, causing head gasket failure and catastrophic coolant loss. Repair requires installing thread inserts like Time-Serts or an NS300L kit. (Ref: TSB EG015-07 (recommends short block replacement))
  • Melting/Breaking Rear Hatch Handle 🟡 Low — Extremely common. The rubber on the hatch release switch melts and becomes sticky, and the plastic handle assembly breaks from normal use. Aftermarket reinforced handles are available. (Ref: A limited warranty extension was offered but has since expired.)
  • Water Pump Failure 🟠 Medium — Water pump seals can fail, leading to coolant leaks and potential engine overheating, which can exacerbate the head bolt issue.
  • Power Window Regulator Failure 🟡 Low — Common for the front window regulators to fail, causing the window to get stuck, move slowly, or drop into the door. Caused by brittle plastic clips.

Used vs. New Parts: Buying Guide for This Vehicle

When a used part is the smart pick: For this repair, using used parts is generally not recommended for the electronic components. However, if the intake manifold itself were damaged during removal, a used manifold from a junkyard is a perfectly acceptable and cost-effective replacement.

Donor-vehicle mileage cap: roughly under 150000 miles for the part to have meaningful remaining life.

What to inspect on the donor part:

  • For a wiring harness/pigtail: Inspect VERY carefully for any signs of rodent chew marks, brittle or cracked insulation, and corrosion inside the connector pins. Avoid any harness that feels stiff or has been exposed to oil leaks.
  • For an intake manifold: Check for cracks, especially around mounting points. Ensure all threaded inserts for bolts are intact and not stripped.

OEM-only on this vehicle (don't cheap out):

  • Ignition Knock (Detonation) Sensor

Aftermarket brands forum-validated for this vehicle:

  • Denso (this is the OEM manufacturer, often available for less than the Toyota-branded box)
  • NTK

Brands owners have reported issues with on this vehicle:

  • Unnamed, no-brand sensors from online marketplaces. The labor to replace this sensor is too high to risk using a part with questionable quality control, as a premature failure would require repeating the entire multi-hour job.

Real Owner Stories

Aggregated from forums and TSBs cited above. Mileages and costs reflect what owners reported in those sources.

2007 Toyota Camry 2.4L 2AZ-FE

Symptoms: After the Check Engine Light came on, the owner discovered that rodents had chewed the knock sensor wires completely off behind the engine.

What fixed it: The damaged, shielded knock sensor wires had to be carefully repaired, or the entire sub-harness had to be replaced to resolve the code.

Source hint: Camry Forums - 2007 LE 2.4 Knock Sensor

Frequently Asked Questions

My mechanic says the intake manifold has to be removed to fix P0331 on my 2007 Scion tC. Is this correct?
Yes, that is correct. The knock sensor on the 2AZ-FE engine is located under the intake manifold. It is a labor-intensive job, and it is highly recommended to also replace the intake manifold gaskets and the short knock sensor wire harness (pigtail) at the same time to prevent future vacuum leaks or wiring issues.
I found chewed wires near the back of my engine. Could this cause the P0331 code?
Yes, very likely. The soy-based wiring insulation used on this generation of Toyota vehicles is known to attract rodents. A chewed-through knock sensor wire or connector is a common cause for this code. A visual inspection is the first step, followed by a continuity test to confirm.
My 2008 Scion tC is burning a lot of oil. Is this related to my P0331 knock sensor code?
It can be indirectly related. While the oil consumption itself (a known issue covered by TSB S-SB-0031-14 and T-SB-0094-11) doesn't directly cause the code, it can lead to carbon buildup. This buildup can cause engine knock (detonation), which the sensor is designed to detect, potentially triggering the code if the knocking is severe.
What is the correct resistance for the knock sensor on the 2.4L 2AZ-FE engine?
According to diagnostic procedures, the internal resistance of the knock sensor should be between 120 and 280 kΩ when measured at room temperature (20°C / 68°F). A reading outside this range indicates a faulty sensor.
Is it safe to continue driving my Scion tC with an active P0331 code?
It is not recommended. Symptoms include reduced engine power and audible engine pinging or knocking. Engine knock (detonation) can cause serious internal engine damage over time. You should have the vehicle diagnosed and repaired as soon as possible.
Do other Toyota vehicles with the 2.4L engine have this same knock sensor problem?
Yes. The 2AZ-FE engine was used in many vehicles, and they share this issue. Platform mates like the 2002-2011 Toyota Camry, 2004-2008 RAV4, and 2008-2012 Scion xB are all known to experience the same knock sensor and wiring failures.
Toyota/Scion Intake Manifold Removal
Toyota/Scion Intake Manifold Removal
How to Fix P0331 Engine Code in 2 Minutes [1 DIY Method / Only $10.58]
How to Fix P0331 Engine Code in 2 Minutes [1 DIY Method / Only $10.58]
Wrenchy
Article researched & written by
Go-Parts' AI research assistant. Every article is backed by live web research, verified OEM data, and real technician knowledge — so you get accurate, up-to-date information you can trust.
Meet Wrenchy → Updated Jul 29, 2026

The information in this article is provided for general reference and educational purposes only. Vehicle specifications, procedures, and part compatibility can vary by production date, trim level, and region. Always consult your vehicle's factory service manual and verify part numbers before purchasing or performing repairs. Safety-critical components such as airbags, seat belts, and braking systems should be installed by a qualified professional.

Year Coverage
This article covers the OBD-II Code P0331 (Deep Dive) for:
  • Scion tC: 200520062007200820092010
In this article
🎬 Helpful Videos
Jump to ▴

Email This Guide

We'll send you a link to this article so you can read it later or share it.

Added to cart · Part