originally from pulse-sensor - http://pulsesensor.com/