My Serial Plotter is not giving any output

I'm using an AD8232 Heart sensor for a project and I am unable to receive the signal on the plot. I think the output is there because I am getting some random values in the serial monitor.

Here is my Code btw
</>
void setup() {
// initialize the serial communication:
Serial.begin(9600);
pinMode(10, INPUT); // Setup for leads off detection LO +
pinMode(11, INPUT); // Setup for leads off detection LO -

}

void loop() {

if((digitalRead(10) == 1)||(digitalRead(11) == 1)){
Serial.println('!');
}
else{
// send the value of analog input 0:
Serial.println('h');
Serial.println(analogRead(A2));
}
//Wait for a bit to keep serial data from saturating
delay(1);
}
</>
The serial plotter shows baud option but no axis.

I am following this tutorial

Could anyone help I'm doing it for an engineering project.

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

Serial Plotter does not do letters.

Try that.

I tried removing those statements but it didn't work. Thanks for replying.

I got the answer. It turns out the baud value wasn't the same for the program and plotter. Thanks for the help.

Oi! did you change the serial plotter's baud rate to match

?

I'd use 115200 for both settings.

Thanks I did change the baud rates and it worked. I'm doing a signal processing project so this helped a lot. Cheers !