Main task
The crankshaft sensor sends the engine control module information on engine speed and when the engine is at top dead center. This information is used to calculate permissible injection quantity as well as when fuel pressure buildup should start.