Any ideas as to how I would create a piece of code that says something along the lines of the following?
if(no pulses are received in the next 100ms)
{
dpm = 0
}
In crank(), record when the function is called.
In loop(), then, it is easy to determine how long it has been since the last pulse happened.