Use only one wire for keypad. Together with Passcode-Sketch.

Had two sketches one with Passcode and one with onewire-keypad. Merged this two to use a servo as a door opener.

 

Rows connected to 4.7KOhm

Columns connected to 1KOhm