The CKP sensor (Crankshaft Position Sensor) determines the position of the crankshaft, and then sends that information to the PCM (Powertrain Control Module). Taking into account the model of the vehicle, the PCM (Powertrain Control Module) can use this information to synchronize the spark correctly and, in other cases, detect misfiring.
The CKP sensor (Crankshaft Position Sensor) is stable and works in conjunction with a reluctor ring, which is attached to the crankshaft. The reluctor ring passes to the front of the CKP sensor and in this way an electromagnetic field is created. In turn, this magnetic field is interrupted by the CKP sensor to create a voltage signal in the form of a square wave, which the Power Train Control Module interprets as the position of the crankshaft.
In case the Powertrain Control Module detects that no crankshaft pulses are present or there are problems with the pulses in the output circuit, the DTC code P0335 OBD2 is set.