Hi,
To make you code more readable, use pin names that describe their function,
int a=12;
int b=11;
int c=10;
TO;
int doorlatchPin=12;
int dooropenPin=11;
int doorclosePin=10;
Also in the IDE press CTRL T
It will auto format your code and make it easier to read.
THIS IS AN IMPORTANT BIT;
To add code please click this link;
You can also bump up the monitor speed too.
Serial.begin(115200);
Thanks.. Tom...

1 Like