Pulse Sensor Not Working

I would suggest using A3 instead of 0 in the above assignment (assuming that you have wired your hardware as shown in the schematic you posted).