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.