Crank Sensor Function