Pulse Sensor Not Working

Please share your updated code, and your updated circuit schematic.

Also, please read the instructions in this comment before responding with the requested information.