The crankshaft position sensor was replaced but the car still has the error code

The answer to this question can differ based on the circumstances involved. Because not all crankshaft sensor problems are caused by the same issues, the code ( P0335) may remain on even after the crankshaft sensor has been replaced.

And, here are two potential reasons why this is so.

The Crankshaft sensor is not installed properly

If the crankshaft position sensor is not installed properly, this code will not be disabled. This is mainly because a bad installation may cause damage to the engine.

Therefore, you may need a mechanic to do this job for you. For example, these professionals are trained to fix these problems right the first time and equipped with the knowledge to recalibrate the crankshaft and the camshaft ( i.e. by using the crank relearn process).

The crankshaft and the camshaft are not installed at the same time

If the crankshaft and the camshaft are not installed at the same time, the crankshaft sensor code will remain on. Again, this is primarily because of the severe damage that can be done, particularly if the camshaft and the crankshaft get out of sync.

For instance, if the timing is off, the valves and the pistons may make contact, and cause catastrophic damage to the car’s engine.

In either case, if the fix does not correct the initial problem, the driver of the vehicle will continue to get the crankshaft sensor until the problem has been completely resolved.

How to fix this problem?

To fix a problem with the crankshaft sensor, you need to know the exact cause of the problem that you are encountering. Since these problems can be related to different things, the sensor must be inspected to see what is actually going on.

More importantly, to get to the source of this type of issue, your mechanic may start identifying the different possibilities by troubleshooting. For instance, one of the best ways to start this process is to test the crankshaft sensor.

To do this, you or your mechanic may follow the steps listed below.

  • Step #1 – Remove the plug connection
  • Step #2 – Check the internal resistance of the crankshaft sensor
  • Step #3 – Depending on the reference value that appears, you should make decisions based on the following parameters 200 to 1,000 ohms of internal resistance means the sensor is ok. Zero ohms of internal resistance means there is a short circuit. M ohms means there is an interruption

The results of these tests will determine what repairs will need to be done. For example, if there is a short circuit, the problem may be directly related to a loose connection or damaged wiring.

And, if this is the case, the wiring will need to be repaired by using the appropriate tools (i.e. wire strippers, wire cutters, pliers, wire connectors, etc.).

Do you have to disconnect the battery to replace the crankshaft position sensor?

Yes, you will need to disconnect the negative battery terminal before you start the process of replacing the crankshaft position. This step is essential for several different reasons.

One of the most important is avoiding unnecessary injuries to yourself and/or damage to your vehicle.

Does a wrong installation of a crankshaft trigger the error code?

Yes, the wrong installation of a crankshaft trigger can trigger this error code. This is primarily because a bad installation job usually means that there is still a problem with the crankshaft position that needs to be fixed.

For instance, if the mechanic does not install the right type of wiring or follow the right procedures for the installation, the error code will be triggered again.


Installing a new crankshaft sensor may or may not disable the code. Two potential reasons for this code to be triggered, after installation, usually include one of the following:

  • The crankshaft sensor is not installed properly
  • The crankshaft and the camshaft are not installed at the same time

Whatever the situation, the code will remain on until all associated problems are resolved. These codes will help to ensure that no unnecessary damage is done to the engine.

Scroll to Top