pulse sensor and ISR stops the rest of my code

wvmarle:
The five pieces of code (why five?) fit nicely in the 9,000 character limit.

Why don't you start with writing a smallest possible example that shows the problem?

it`s already there in the main topic

That's anyway what you already should have done to even have a chance of tracking down the problem (and in the process verifying it's not the sensor that's at fault).

iam pretty sure the rest of the code working right as i tried each part in their own