The Crankshaft Sensor is used to detect the position and rotational speed of the crankshaft in the engine. This allows the ECU to change the injector opening, spark timing and other engine parameters.