A crankshaft is a mechanical part of an engine that converts reciprocating motion into rotational motion. A crank sensor is an electronic device used to detect the position of the crankshaft.