Created the arduino code to read the pulse sensor.