Help with coding [MAX30100 pulse oximeter & buzzer]

.
Start by reading this again:

and read how to post code in code tags.
Edit your entry post accordingly.

When you are ready, explain when you need the buzzer ring.
But first - post your code correctly in code tags.