I've written an Arduino Pulse Sensor library based on Joel Murphy's and Yury Gitman's Pulse Sensor Amped Sketch. This video shows the library and example code running on an Arduino 101 and communicating with Joel's and Yury's Processing Sketch that graphs the pulse waveform.
The cool thing about this library and example code is that it runs on all sorts of Arduino compatibles without using ARM-specific Timer Interrupt setup code.
The code is at https://github.com/bneedhamia/PulseSe...
March 2018 update: The Pulse Sensor site, https://pulsesensor.com/ now uses a Library I wrote, and has much more extensive information and tutorials than this code here. For open source code that runs on a variety of Arduinos - including the Arduino 101 - see https://github.com/WorldFamousElectro... and the associated tutorial.