crank sensor on 1997 Pontiac Grand Prix GTP

what is the function of the crank sensor ??

Asked by for the 1997 Pontiac Grand Prix GTP
crank sensor reads signal of crank sensor to make sure eng is in syn b4 it will start