Changed processor from PIC to Arduino,completely new need help with programming

What hardware are you using to detect the heartbeats ?