Oh, then change the ELSE statement to print whatever you want it to say.
"else flagged =0;" change this to,
else { Serial.println("not valid");
flagged =0;
}
Oh, then change the ELSE statement to print whatever you want it to say.
"else flagged =0;" change this to,
else { Serial.println("not valid");
flagged =0;
}