// Piezo sensor on pin 0. const int programSwitch = 2; // If this is high we program a new code. //const int lockMotor = 3; // Gear motor used to turn the lock. const int redLED = 4; // Status LED ...