So when I go to compare then, what is the best way to do this? I am trying here to convert the char array to a string:
String code = "12345";
char keys[5];
.....
String str(keys);
if(keys == code) {
Serial.print("Access granted");
}