pulse sensor and ISR stops the rest of my code

Bytes (bool) have atomic access, no need for volatile here. I didn't want to overload the OP with local copies and exclusive access to volatile multi-byte variables.