pulse sensor and ISR stops the rest of my code

Nevertheless, for a beginner, it is important to stress the need for "volatile".