Last updated:
In this guide (9 sections)
This article discusses Mercedes Camshaft Position Sensor / Camshaft Hall Sensor (CAM) problems, symptoms, and how to replace the CAM yourself. Replacing the Camshaft Position Sensor (also referred to as Camshaft Hall Sensor) on a Mercedes-Benz is very easy and can be completed in less than 15 minutes, assuming you have the right tools.
Symptoms of a failed Camshaft Sensor
Wondering what happens when a camshaft position sensor goes bad? Watch the following video to find out.
If the camshaft sensor has failed, you will notice some or all of the following:
- The Check Engine Light (CEL) / Service Engine Warning may turn on, and you will receive a fault code related to the CAM sensor.
- Intermittent starting: This is a very common problem if the Camshaft Sensor starts to fail. You may notice the car starts fine one day and then hesitates to start the next. It could also be that the car starts fine when cold, but if it warms up, it’s hard to restart it.
- Loss of engine power: Less common, but it is possible that the car may hesitate under acceleration or even trigger misfire codes. This is because the Electronic Control Module (ECM / ECU) does not receive any information from the CAM sensor, so it does not know the camshaft position.
Fault Codes related to Camshaft Sensor
P0340 fault code is often detected, which points to a camshaft position (hall) sensor fault. The problem could be the wiring, camshaft sensor, or the ECU. Live data from a quality Mercedes scanner shows camshaft and crankshaft correlation in real time, which separates a failed sensor from a stretched timing chain.
Read the code before you buy a sensor
The code number tells you whether you are chasing an electrical fault or a mechanical one. This single distinction saves more wasted money on this repair than anything else.
| Code | Meaning | What it usually points to |
|---|---|---|
| P0340 | Circuit malfunction. No usable signal at all. | Sensor, connector or wiring. The sensor is a reasonable suspect here. |
| P0341 | Range or performance. Signal is present but implausible. | Mechanical. Cam and crank are not lining up. Think timing chain, adjuster or reluctor wheel. |
| P0342 / P0343 | Low or high input, bank 1 | Wiring short or open, or a failing sensor. |
| P0345 / P0346 | Same faults on bank 2 | If one bank is clean and the other is not, compare them before condemning either. |
- P0340 alone usually is the sensor, its connector or its wiring.
- With P0016 or P0017 you have a correlation fault. Cam and crank disagree, which is mechanical, not electrical.
- With P0011 or P0014 suspect the camshaft adjuster rather than the position sensor.
How to test a camshaft position sensor
There are two useful tests, and the second one is the one that actually settles it.
- Inspect the connectorUnplug it and look for oil, corrosion, green residue or a pushed back terminal. On M272, M273 and M276 engines this is where the fault usually is.
- Check continuity and supplyWith a digital multimeter, confirm continuity on the signal wire back to the ECU, and check that the sensor has its supply voltage and a good ground with the key on.
- Compare cam and crank in live dataThis is the decisive test. With a full system scanner, watch camshaft and crankshaft correlation while cranking and at idle. A stable signal with noise or dropouts means the sensor. A consistent phase error of several degrees means the chain, the adjuster or the reluctor wheel, and no new sensor will fix it.
How to replace the Camshaft Position Sensor on a Mercedes-Benz
Tools Required
| FEMALE E-TORX (Star) Socket Set |
Parts Required
You will be surprised how inexpensive a CAMshaft position sensor is. If you go to Amazon, you will find a CAM sensor for any Mercedes-Benz model. Visit the link below to check current prices.
| MERCEDES-BENZ Camshaft Position Sensor |
Step-by-step instructions
Follow these steps to replace the camshaft position sensor on your Mercedes-Benz E, C, S, CLK, ML-Class, and other models.
- Open the hood and locate the camshaft position/hall sensor.
- Unplug the electrical connector from the camshaft position sensor.
- Remove the bolt using E-8 Female Torx socket.
- Pull out the old camshaft position sensor.
- Install the new camshaft sensor. Ensure that the old o-ring is removed and a new one is installed.
- Tighten the bolt to 8Nm or 70 in-lbs. Connect the electrical connector and replace the engine cover if it was removed.
Frequently Asked Questions
How much does replacing the Camshaft Position Sensor (Camshaft Hall Sensor) on a Mercedes-Benz cost?
The cost to replace the camshaft position sensor can vary from $150 to $300, depending on the auto repair shop and your location. You could replace the camshaft position sensor yourself in less than 15 minutes and spend as little as $90 if buying directly from Mercedes.
What happens when the camshaft position sensor goes bad?
Once the camshaft position sensor fails on your Mercedes-Benz, you may start noticing any of the following: the car will hesitate to start, the engine cranks but does not start or start after several tries, the engine runs rough, the engine has multiple cylinder misfires and a lack of power or acceleration.
Where is the Mercedes-Benz Camshaft Hall Position Sensor located?
The camshaft position sensor on Mercedes-Benz cars with 6, 8, and 12-cylinder engines is located on the front of the engine toward the top, near the valve cover.

How do camshaft position sensors work?
The camshaft position sensor is an electronic device used in gasoline engines to monitor the camshaft’s position or rotational speed. The engine management system (ECU/ ECM) uses the position location to adjust the timing, fuel injection, and other engine parameters.
Possible solutions to the camshaft position sensor problem
First, you must replace or ensure that the camshaft position sensor works properly. Then, you can perform further diagnosis and check the following.
- Using a digital multimeter, check the wires to make sure there is continuity.
- Unplug the electrical connector going to the camshaft position sensor.
- A defective engine control unit (ECU) could also be the cause.
Is it CAM or CPS?
A common misconception about the CAMshaft position sensor, or the hall sensor, is its acronym. The correct acronym is CAM, not CPS. CPS stands for Crankshaft Position Sensor, which monitors the rotational speed of the crankshaft.
How to test a camshaft position sensor?
Testing the camshaft position sensor is easy and can be completed at home using basic tools.
I replaced the camshaft position sensor, but my check engine light is still on.
If you replaced the camshaft position sensor and your check engine light is still on, you may need to check if there are any other fault codes. To do this, you will need an OBD2 scanner. We highly recommend that you get hold of an OBD-II scanner. You can read this article, which can help you choose the right OBD-II scanner for Mercedes-Benz.
What scanner do I need for this job?
A basic code reader will give you the P0340 and nothing else. That is enough to know a cam code exists and not enough to know what to do about it.
What actually decides this repair is live data: watching camshaft and crankshaft correlation while the engine cranks and idles. That is the test that separates a failed sensor from a stretched chain, and a generic reader cannot show it.
The YOUCANIC UCAN-II Pro streams that live data, reads every module, and clears the codes once the real fault is fixed.
We sell the YOUCANIC UCAN-II Pro. The function comparisons below come from each manufacturer’s own documentation so you can check them yourself.
Compared to Xentry
For this diagnosis the two are equivalent. Both show cam and crank correlation and both clear the codes. Xentry’s exclusive function is online VIN coding, which a camshaft sensor replacement never requires. What you avoid with the YOUCANIC scanner is the subscription and the dealer login.
The reading to look at is whether cam and crank actually agree. A stable signal with dropouts is a sensor. A steady phase error is a timing problem. Live data tells you which one you have before you buy a part.
Applicable Models
These instructions will also help if you have a newer Mercedes-Benz with V6 or V8 engines, such as M272 or M273.
| M112 V6 Engine | M113 V8 Engine |
| 1998 to 2005 C240 1998 to 2004 CLK240 1998 to 2004 E240 1998 to 2000 C280 1998 to 2006 S280 1998 to 2004 C320 1998 to 2004 E320 1998 to 2005 S320 1998 to 2003 ML320 1998 to 2005 CLK320 1998 to 2003 SLK320 2003 to 2008 Chrysler Crossfire 2001 to 2003 C32 AMG 2001 to 2003 SLK32 AMG 2005 to 2006 Chrysler Crossfire SRT-6 2003 to 2005 ML350 2003 to 2006 S350 2003-2006 SL350 |
1997-2000 C43 AMG 1997-2002 E430 1998-2003 CLK430 1999-2001 ML430 1999-2006 S430 1998-2008 G500 1999-2006 S500 1999-2006 SL500 2001-2006 CL500 2001-2006 ML500 2002-2006 CLK500 2003-2006 E500 2004-2006 CLS500 2008- SsangYong Chairman W 1998-2002 E55 AMG 2000-2001 S55 AMG 2000-2003 ML55 AMG 2001-2002 CLK55 AMG 2001-2002 CL55 AMG 2002-2003 G55 AMG 2004-2010 SLK55 AMG 2005-2007 C55 AMG 2003-2006 CL55 AMG 2002-2006 S55 AMG 2002-2008 SL55 AMG 2003-2006 E55 AMG 2004-2006 CLK DTM AMG 2004-2009 G55 AMG 2006 CLS55 AMG |
Related guides
Before you buy parts, scan every control module, not just the engine. It shows the root fault behind the warning lights and tells you whether the problem is still active. See how to do a full health check.




In my scanner code p0012 what Does that mean and what is the cause and how do I fix the problem thx
How many camshaft sensor 2006 cls 500
We have a 2013 MB GL 350 Blue Tec. Dashboard “check engine” light came about 2 months ago. We had it checked by MB and they told us they could find nothing wrong. However, they suggested that we possibly consider replacing the main sensor for $1300.
2 days ago we lost power, the turbo wouldn’t kick in and the engine began to skip. The following day the engine light came on and the turbo skips and works occasionally.
We are on vacation, called the MB dealer and they can only see us in a week.
What do you think it could be and will it hurt to drive it until they will take it in for servicing. We have no other means of transportation
I have replaced both Sensors on my 2013 C250. I also replaced my ignition coils and spark plugs. The car still starts roughh! Ang ideas? The check engine light was on and the code was faulty Cam Shaft Sensor, bank 1. Any ideas as to what I do next?
There are 3 or 4 camshaft sensors in a 2007 MB E550. How do you know which one to replace.
If you had a proper scanner you will be able to test any of them. Also check the fault codes. The fault code may point you to the sensor that needs to be replaced. Driver side / left is bank one. Passenger side is bank two. Then you could have front or rear depending on the code.