Simply put, a camshaft position sensor determines the position and rotational speed (in RPM) of the crank. This is important because this information is used to control ignition timing and/or fuel injection timing.