Home Alarm with a 3 wire 4x3 analog keypad nearly done but need some help please

Good! Yes, that feature can be turned on and off inside the alarm case. I don't kow what you exactly wanted.

Hi liudr. What I wanted is to attach a PIR sensor and have the value it senses for movement set the alarm buzzer off for say 30 seconds. The keypad needs the correct code to disarm the alarm buzzer and ignore the PIR sensing or turn off the PIR sensor using a transistor. If i use a PNP transistor setting a digital pin HIGH via a resistor to the base of the transistor would cut the power to the PIR sensor.

 if (pointer==5)
      {
        buffer[pointer]=0;
        pointer=0;
        if (!strcmp(buffer,password))
        {
          Serial.println("Authenticated!");
          system_state=cleared;
          cleared_starting=millis();
II hope this is a help
Jeremy
          // Open a door or something
          digitalWrite (tripped,LOW);
          digitalWrite(alarmOff,HIGH);
        }
   
        }
        
        else
        {
          Serial.println("Unauthorized!");
          system_state=alarm;
          alarm_starting=millis();
          digitalWrite(alarm_pin,HIGH);
          digitalWrite(tripped,HIGH);
          digitalWrite (alarmOff,LOW);
        }
      }
    }[code]

[/code]