I am using this code to calculate the BPM from the pulse sensor, (i attached it) but i am always getting values in the high 100's and 200's. I think i may have to adjust the threshold value to correct this? Honestly, i have zero clue how this works, and if anyone could explain how the BPM is calculated, it would be very helpful . I also used these posts arduino uno - Getting BPM from the given code - Arduino Stack Exchange
and these:
http://forum.arduino.cc/index.php?topic=140701.0
Thanks everyone!
FINAL.ino (3.58 KB)