'doorlock' does not name a type

tyty1107:
Thanks for your help i found a different way to do it with a keypad.

As a matter of interest are you still using an Arduino ?