hacked pulse sensor arduino code to work (sort of) with our DIY hardware