ECG Sensor using Arduino UNO and AD8232

I am a very beginner in Ardunio. I am trying to develop an ECG sensor using AD8232 and Arduino Uno. I have used the following program

void setup() {

Serial.begin(9600);
pinMode(10,INPUT);
pinMode(11,INPUT);

}

void loop() {

if((digitalRead(10)==1)||(digitalRead(11)==1)){
Serial.println(":D");
}
else{
Serial.println(analogRead(A0));
}
delay(100);

}

But I am not able to observe P, QRS, T wave in serial plotter output. Please find the attached output waveform. It will be a great help for me if anyone can check the code and the waveform and suggest me some modifications.

Thanks in advance

Do you suppose the delay might be missing something.

Paul

Can you please elaborate?

BijitIITD:
Can you please elaborate?

THIS " delay(100);" occurs EVERY time through your loop. Suppose something happens during the time-out period. Do you think it might be important?

Paul

I have removed the delay portion and got the attached output.