Need Help with Pulse Sensor + AdaFruit ProTrinket 5v

Forgot to include the code I'm trying to fix. It's attached. Ideally, I'm trying to merge the two codes from the tutorial or at least paste them correctly.

Code.pdf (50.2 KB)