doorlock.attach(10);
}
void loop(){;
int doorlock.write(0);
String passcode = "34214";
String dataEntered = "";
for (int i = 0; i < 5; i++){
while (1){
String x = buttonRead();
if (x != "nothing"){
dataEntered = dataEntered + x;
break;
}
}
delay(200);
}
if (passcode == dataEntered){
int doorlock.write(180)
Serial.printin("Press button #1 tp lock");
while (1){
if (digitalRead(button) == 0){
break;
}
else()
}