This is not an EKG Wave, its a puls wave (pleth). I need the AC Peak, so in an EKG Waves this would be the R from the QRS. But what you say to the T value is very interesting for me! I will notice it!
I think i know how to code it, but i have a short question, how i can ad a return into my arduino sketch to get back to the top of an if and is this okay in the code? Or is it better to work with while?