Error: 'Password' does not name a type

Hello,

I have downloaded this code but i get this error.

'Password' does not name a type

This is the code:

//http://www.arduino.cc/playground/uploads/Code/Password.zip
#include <Password.h>
//http://www.arduino.cc/playground/uploads/Code/Keypad.zip
#include <Keypad.h> 

Password password = Password( "1234" );

byte rows = 4; //four rows
byte cols = 4; //four columns
byte rowPins[] = {2,3,4,5}; //connect to the row pinouts of the keypad
byte colPins[] = {6,7,8,9}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad(rowPins,colPins,rows,cols);

const byte ledPin = 13; 

void setup(){
  pinMode(ledPin, OUTPUT);      // sets the digital pin as output
  digitalWrite(ledPin, HIGH);   // sets the LED on
  Serial.begin(9600);
  keypad.addEventListener(keypadEvent); //add an event listener for this keypad
}
  
void loop(){
  keypad.getKey();
}

Correct me if i am wrong. What the code sais is that when i press 1234 on the keypad the LED will turn on.

What happens after read the keypad here?

void loop(){
keypad.getKey(); // this will bring in one character at a time, and then ... what?
}

Seems to me you need to perform more actions.

jimdt7:
'Password' does not name a type

Is this the ONLY error you get? I suspect that the IDE cannot find Password.h because either it was placed into the wrong directory or you haven't restarted the IDE yet.