Sensor detects the speed and position of crankshaft. Used for fuel injection timing and ignition timing.