copy sample code from
http://pulsesensor.myshopify.com/pages/code-and-guide