Guys please help me how to program a keyless door entry..

We would like to ask something about Arduino code on Keyless Door Entry. The process goes on this way.
We are using keypad, solenoid and alarm. We are also supported by libraries, "keypad.h" and "password.h". Once correct password is pressed, the solenoid will be energized, thus letting the door to open. When wrong password is entered, the alarm will be activated. Our concern is, THE ALARM WILL BE ACTIVATED AFTER THREE CONSECUTIVE WRONG ATTEMPTS upon entering the PASSWORD.

Please help us guys for the success of our project. Thank you so much. God bless. :slight_smile:

guys this is our program

#include <Password.h>
#include <Keypad.h>

Password password = Password( "1234" );

const byte ROWS = 4; // Four rows
const byte COLS = 3; // columns
// Define the Keymap
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'}
};

byte rowPins[ROWS] = { 9,8,7,6 };
byte colPins[COLS] = { 5,4,3 };

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int RED=11;
int GREEN=12;
void setup(){

Serial.begin(9600);
keypad.addEventListener(keypadEvent);
pinMode(RED,OUTPUT);
pinMode(GREEN,OUTPUT);
}

void loop(){
keypad.getKey();
}

void keypadEvent(KeypadEvent eKey){
switch (keypad.getState()){
case PRESSED:
Serial.print("Pressed: ");
Serial.println(eKey);
switch (eKey){
case '*': checkPassword(); break;
case '#': password.reset(); break;
default: password.append(eKey);
}
}
}

void checkPassword(){
if (password.evaluate()){
Serial.println("Success");
digitalWrite(RED,LOW);
digitalWrite(GREEN,HIGH);

}else{
Serial.println("Wrong");
digitalWrite(RED,HIGH);
digitalWrite(GREEN,LOW);

}
}

My concern is that YOU KEEP SHOUTING and you have not posted any code so that we can see what you have done so far.

You have, of course, read and absorbed http://forum.arduino.cc/index.php?topic=97455.0

You have, of course, read and absorbed Read this before posting a programming question ... - Programming Questions - Arduino Forum

With three cross-posts (two of which now deleted) it would appear not.

DO NOT CROSS-POST; IT MAKES ME VERY CROSS.

sorry I'm new here. please understand..