calculate each sensor distance between pulses