My AD8232 doesn't show heartbeat (just shows '!' in the seriël monitor)

I'm working on a project with a AD8232 heartbeat monitor but it doesn't show results. The seriël moniter only shows ! (exclamation mark). And when I open the plotter I don't see anything.

This is the youtube tutorial I watched: http://https://www.youtube.com/watch?v=01y_Vu_sAQU

My hardwear: Arduino Uno

This is the code I used:

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(analogRead(A0));
}
//Wait for a bit to keep serial data from saturating
delay(1);
}
[color=#212529]Can you maybe help me to get this working? :)
Greatz Mila
[/color]

Look at the code closely. What the ! (exclamation point) is telling you is that there is a lead off detection.

pinMode(10, INPUT); // Setup for leads off detection LO +[color=#222222][/color]
pinMode(11, INPUT); // Setup for leads off detection LO -[color=#222222][/color]
}[color=#222222][/color]
void loop() {[color=#222222][/color]
if((digitalRead(10) == 1)||(digitalRead(11) == 1))[color=#222222][/color]
{[color=#222222][/color]
Serial.println('!');

Check your wiring. Look at what the code is telling you. The pads need to be making good skin contact for these things to work.

Ron