Engine Parts

Engine Sensors Explained: What Each One Does and How It Fails

What each engine sensor measures, how the ECU uses it, and the usual signs of failure, from crank and cam sensors to MAF, MAP, oxygen and knock sensors.

On this page
  1. What engine sensors do
  2. The main engine sensors at a glance
  3. Sensor-by-sensor guide
  4. The four main types of engine sensors
  5. How engine sensors fail
  6. What happens if you drive with a bad sensor?
  7. How to diagnose a sensor problem
  8. Is it expensive to fix a car sensor?
  9. Other sensors in a car

What engine sensors do

A modern engine is run by a computer, the engine control unit (ECU), also called the engine control module (ECM) or powertrain control module (PCM). The ECU can’t see or feel the engine. Sensors report to it instead: how fast the crankshaft is turning and where it is, how much air is coming in, how hot the coolant is, how much oxygen is left in the exhaust, and more.

The ECU uses those readings to decide, many times a second, how much fuel to inject, when to fire the spark plugs, how far to open the throttle, and when to adjust valve timing. When a reading looks wrong, it can switch on the check engine light and store a diagnostic trouble code (DTC). Sometimes it also falls back to a reduced-power “limp” mode to protect the engine.

Most engine sensors send the ECU a varying voltage or a pulsing signal. Many run off a stable 5-volt reference supplied by the ECU. That’s why one damaged wire or connector can upset several sensors at once.

For where these sensors sit among the engine’s mechanical parts, see our engine parts and functions guide.

The main engine sensors at a glance

Sensor What it measures What the ECU uses it for Common failure signs Example code(s)
Crankshaft position (CKP) Crank position and speed Spark and injection timing, rpm Stalling, no-start, misfire P0335
Camshaft position (CMP) Cam position Identifying each cylinder’s stroke, variable valve timing Hard starting, rough running P0340
Mass airflow (MAF) Mass of air entering Fuel calculation Hesitation, lean codes, poor economy P0101
Manifold absolute pressure (MAP) Intake manifold pressure Engine load, fuel calculation Rough idle, poor power, rich/lean running P0106
Intake air temperature (IAT) Incoming air temperature Fuel and timing correction Mild drivability changes P0110–P0113 range
Engine coolant temperature (ECT) Coolant temperature Cold-start fueling, idle, fans, gauge Hard starting, poor economy, wrong gauge, fan problems P0117, P0118
Throttle / pedal position (TPS, APP) Throttle and pedal angle Driver demand, throttle control Hesitation, surging, limp mode P0121
Oxygen / air-fuel ratio (O2, AFR) Oxygen in the exhaust Fine-tuning fuel mixture, catalyst monitoring Poor economy, failed emissions P0130 range, P0171, P0420
Knock Vibration from abnormal combustion Retarding spark to prevent damage Reduced power, poor economy P0325
Oil pressure (sender or switch) Engine oil pressure Warning light or gauge, sometimes engine protection False warnings, or none when needed P0520
Fuel (rail) pressure Fuel pressure Injector control Hard start, stalling, low power P0087
Boost pressure Turbo/supercharger pressure Boost control Low power, limp mode P0299 (underboost)

Codes are examples only. A code describes the problem the ECU detected, such as a circuit fault or an implausible reading. It doesn’t always mean the sensor itself is bad.

Sensor-by-sensor guide

Crankshaft position sensor (CKP)

The CKP sensor reads a toothed reluctor wheel on the crankshaft. A gap in the teeth marks a reference point, so the ECU knows the crank’s exact angle and speed. Our crankshaft and crank angle guide explains why that angle matters. This is arguably the most important sensor on the engine. On most engines, without a usable crank signal the ECU can’t time the spark or injection, so the engine won’t run.

Typical failure signs: the engine cranks but won’t start, cuts out or stalls (sometimes only when hot), misfires, or shows an erratic or dead tachometer. Heat and age can make some sensors fail intermittently, which makes them hard to catch.

Camshaft position sensor (CMP)

The CMP sensor reads a target on the camshaft. The crank turns twice per four-stroke cycle, so the crank sensor alone can’t tell the compression stroke from the exhaust stroke. The cam signal settles that, which lets the ECU fire injectors and coils for each cylinder at the right time. On engines with variable valve timing, cam sensors also confirm the cams are where the ECU commanded.

Typical failure signs: longer cranking before starting, rough running, reduced power, and cam timing codes. Some engines will still run on the crank signal alone, but poorly.

Mass airflow sensor (MAF)

The MAF sensor sits in the intake duct after the air filter. It measures the mass of air entering the engine, usually with a heated wire or film that the airflow cools. The ECU matches fuel to this airflow.

Typical failure signs: hesitation, stumbling on acceleration, rough idle, poor fuel economy, and lean-mixture codes such as P0171. A dirty sensing element, often from oil or dust past a poorly fitted filter, can cause it to under-read. An air leak between the MAF and the engine has a similar effect, because that air goes unmeasured.

Manifold absolute pressure sensor (MAP)

The MAP sensor measures pressure inside the intake manifold. That pressure is a good indicator of engine load. Some engines calculate airflow from MAP, rpm and air temperature instead of using a MAF (a “speed-density” system). Many use both. On turbocharged engines, a related sensor measures boost.

Typical failure signs: rough idle, poor power, rich or lean running, and poor fuel economy. A cracked or disconnected vacuum hose to the sensor causes the same symptoms.

Intake air temperature sensor (IAT)

The IAT sensor measures the temperature of incoming air, which affects its density. It is often built into the MAF sensor housing. The ECU uses it to correct fueling and, on some engines, spark timing.

Typical failure signs: usually mild, such as slightly off fueling or a stored code. It is rarely the cause of a major drivability problem by itself.

Engine coolant temperature sensor (ECT)

The ECT sensor measures coolant temperature. The ECU relies on it heavily during cold starts, when it adds extra fuel and raises idle speed. Many cars also use it for the temperature gauge and to switch on the radiator fan. Some have a separate sender for the gauge.

Typical failure signs: hard starting, poor fuel economy, black smoke or a fuel smell (if it wrongly reads cold), a gauge that reads wrong, and cooling fans that don’t come on. A bad ECT reading can hide a real overheating problem. If the gauge and the engine’s behavior don’t agree, get it checked rather than trusting the gauge.

Throttle position and accelerator pedal position sensors (TPS, APP)

The TPS reports how far the throttle plate is open. On drive-by-wire cars, the accelerator pedal position sensor reports what your foot is asking for, and the ECU then moves the throttle electronically. These sensors are usually doubled up so the ECU can cross-check them.

Typical failure signs: hesitation, surging, an erratic idle, and on drive-by-wire cars, a sudden switch to limp mode with limited power if the two signals disagree.

Oxygen and air-fuel ratio sensors (O2, AFR)

Oxygen sensors screw into the exhaust and measure leftover oxygen. That tells the ECU whether the engine is running rich (too much fuel) or lean (too little). The upstream sensor, before the catalytic converter, is used to fine-tune the mixture. The downstream sensor, after the converter, mainly checks that the converter is working. Many newer engines use a wideband air-fuel ratio sensor upstream, which reports the actual mixture over a wider range instead of simply switching between rich and lean.

Typical failure signs: poor fuel economy, failed emissions tests, rough running, and mixture or catalyst codes. Oxygen sensors age gradually and become slow to respond. A P0420 catalyst code can be caused by a failing converter, a faulty sensor or an exhaust leak. Don’t assume which one without testing.

Knock sensor

The knock sensor is a small piezoelectric microphone bolted to the engine block. It listens for the sharp vibration of detonation (knock), uncontrolled combustion that can damage pistons, rings and bearings. When it hears knock, the ECU retards (delays) spark timing until the knock stops.

Typical failure signs: usually a code and a quiet loss of power or economy, because many ECUs retard timing as a precaution when the knock signal is missing. Persistent audible pinging is worth investigating either way.

Oil pressure sensor or switch

Older and simpler engines use an oil pressure switch that only turns on a warning light when pressure drops below a threshold. Others use a sender that drives a gauge. Some modern engines also use the reading to protect the engine or control a variable-output oil pump.

Typical failure signs: a flickering or constant warning light, a gauge stuck at zero or maximum, and oil leaking from the sensor body. A failed sensor can give a false warning, but it can also fail to warn when pressure really is low. Treat any oil pressure warning as real until it’s proven otherwise. Low oil pressure can quickly damage the bearings and crankshaft, as our guide on what destroys a crankshaft explains.

Fuel pressure and fuel rail pressure sensors

These report fuel pressure so the ECU can control the pump and calculate injector timing. They are especially important on direct-injection gasoline engines and common-rail diesels, which run at very high pressure.

Typical failure signs: hard starting, stalling, hesitation and low power. A low-pressure code (such as P0087) can also mean a weak pump, a clogged filter or a leak. The sensor is only one suspect.

Turbocharger and diesel sensors

Turbocharged and diesel engines add more sensors, which vary by engine:

  • Boost pressure sensors to control turbo output
  • Exhaust gas temperature (EGT) sensors to protect the turbo and aftertreatment
  • Differential pressure sensors across a diesel particulate filter (DPF) to tell when it needs to regenerate
  • NOx sensors on many modern diesels to monitor emissions systems

Failures here often bring on limp mode and emissions-related warnings rather than an engine that won’t run.

The four main types of engine sensors

People group sensors in different ways. For engines, a useful split is by what they measure:

  1. Position and speed sensors. Crank, cam, throttle and pedal position.
  2. Pressure sensors. MAP, boost, oil pressure, fuel pressure, DPF differential pressure.
  3. Temperature sensors. Coolant, intake air, exhaust gas, oil temperature.
  4. Chemical (gas) sensors. Oxygen, air-fuel ratio and NOx sensors that read exhaust makeup.

Airflow (MAF) and knock (vibration) sensors don’t fit neatly into those four groups, but they work on the same idea: turn a physical quantity into an electrical signal for the ECU.

How engine sensors fail

Sensors fail in a few common ways:

  • Wiring and connector problems. Corroded pins, broken wires, chafed insulation and loose connectors are very common. They are often the real fault behind a “sensor” code.
  • Contamination. Oil, dirt or carbon on a MAF element or oxygen sensor tip.
  • Heat and vibration. Sensors mounted on or near hot engine parts or the exhaust slowly degrade.
  • Internal electrical failure. The sensor simply stops producing a signal, or produces one that drifts out of range.
  • Mechanical damage. For example, a damaged reluctor wheel, or a sensor hit during other repair work.

A sensor can also be working perfectly and simply reporting a real problem. A lean code with a healthy MAF, for example, may point to a vacuum leak.

What happens if you drive with a bad sensor?

It depends heavily on which sensor and how it has failed:

  • Crank or cam sensor. The engine may stall or fail to restart, sometimes without warning. That can leave you stranded or lose power at a bad moment in traffic.
  • Coolant temperature sensor. Poor running, and possibly a gauge that doesn’t show real overheating.
  • Oxygen or MAF sensor. Usually worse fuel economy and emissions, and over time, possible harm to the catalytic converter.
  • Knock sensor. Often reduced power and economy, and a higher risk of knock damage if the ECU can’t protect the engine.
  • Throttle or pedal sensor. Limp mode with very limited power.

A steady check engine light usually means get it checked soon. A flashing check engine light typically signals a severe misfire that can damage the catalytic converter, and most manufacturers advise reducing load and getting it checked promptly. An oil pressure or overheating warning is a reason to stop safely and switch off the engine. Your owner’s manual explains what each warning light means for your car.

How to diagnose a sensor problem

  1. Read the codes with an OBD-II scanner. Every car sold in the US since the 1996 model year has a standard OBD-II port, and inexpensive scanners are widely available.
  2. Look at the code’s exact wording. “Circuit low” or “circuit high” points toward wiring or an electrical fault. “Range/performance” means the reading is implausible, which could be the sensor or a real engine problem.
  3. Check live data if your scanner supports it. Compare the sensor’s reading with reality: coolant temperature on a cold engine should be close to the outside air temperature, for example.
  4. Inspect wiring and connectors before buying parts.
  5. Look up the procedure for your engine. Manufacturer service information often gives test values for each sensor.

Replacing sensors one by one in response to codes is a common and expensive way to not fix a problem.

Is it expensive to fix a car sensor?

It varies widely. Many sensors are relatively inexpensive parts. Labor, not the part, often decides the total:

  • Easy-access sensors. Many MAF, MAP, IAT and coolant temperature sensors can be reached and swapped quickly.
  • Harder-to-reach sensors. Some crank sensors, knock sensors under the intake manifold, and sensors on the rear bank of a transverse V6 can take hours to reach.
  • Oxygen sensors. Heat can seize them in the exhaust, adding time.
  • Diesel emissions sensors such as NOx sensors tend to be among the more expensive parts.

Diagnosis time is part of the cost too. Paying for proper diagnosis is usually cheaper than guessing.

Other sensors in a car

Beyond the engine, a modern car has many more sensors. Examples include wheel speed sensors for ABS and stability control, transmission speed and temperature sensors, tire pressure sensors, steering angle sensors, airbag crash sensors, parking and driver-assistance sensors (ultrasonic, camera and radar), and cabin temperature sensors. They feed their own control modules, which share data with the ECU over the car’s internal network.

The complete guide to engine parts

Engine Parts and Functions: A Labeled Guide to What's Inside
Read the guide

Keep exploring

Guides from other topics

All topics →