my relay is off its not glowing the light is the model correct ?

// How to Make an Arduino Keypad Lock
// Jlaservideo.com
#define in1 10
#define pirpin 11
//#include <Servo.h>
#include <Keypad.h>

//Servo ServoMotor;
char* password = “789”; // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{‘1’,‘2’,‘3’,‘A’},
{‘4’,‘5’,‘6’,‘B’},
{‘7’,‘8’,‘9’,‘C’},
{’*’,‘0’,’#’,‘D’}
};

byte rowPins[ROWS] = { 8, 7, 6, 9 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int RedpinLock = 13; //for the led
int GreenpinUnlock = 12; //for the green led
int sensor;
void setup()
{
Serial.begin(9600);
pinMode(pirpin,INPUT);
delay(1000);
pinMode(in1,OUTPUT);
pinMode(RedpinLock, OUTPUT);
pinMode(GreenpinUnlock, OUTPUT);
//ServoMotor.attach(11);
LockedPosition(true);
//digitalWrite(in1,LOW);
}

void loop()
{
digitalWrite(in1,HIGH);
sensor=digitalRead(pirpin);
char key = keypad.getKey();
if (key == ‘*’ || key == ‘#’)
{
position = 0;
LockedPosition(true);
}
if (key == password[position])
{
position ++;
}
if (position == 3)
{
LockedPosition(false);
}
delay(100);
}
void LockedPosition(int locked)
{
if (locked)
{
digitalWrite(RedpinLock, HIGH);
digitalWrite(in1,HIGH);
digitalWrite(GreenpinUnlock, LOW);
//ServoMotor.write(11);
}
else
{
delay(1000);

if(sensor==1)
{
Serial.println(“sensor worked”);
digitalWrite(in1,LOW);
}
else
{
digitalWrite(in1,HIGH);
}
digitalWrite(RedpinLock, LOW);
digitalWrite(GreenpinUnlock, HIGH);
//ServoMotor.write(90);
}
}

So what's the question, really?

How is the relay wired?

Using Indentation in your code makes it much easier to read. Using code tags (</> in the upper left corner of the editing window) also helps.

// How to Make an Arduino Keypad Lock
// Jlaservideo.com
#define in1 10
#define pirpin 11
//#include <Servo.h>
#include <Keypad.h>

//Servo ServoMotor;
char* password = "789";  // change the password here, just pick any 3 numbers
int position = 0;
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
	{'1','2','3','A'},
	{'4','5','6','B'},
	{'7','8','9','C'},
	{'*','0','#','D'}
	};

byte rowPins[ROWS] = { 8, 7, 6, 9 };
byte colPins[COLS] = { 5, 4, 3, 2 };
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
int RedpinLock = 13; //for the led 
int GreenpinUnlock = 12; //for the green led 
int sensor;
void setup()
{
	Serial.begin(9600);
	pinMode(pirpin,INPUT);
	delay(1000);
	pinMode(in1,OUTPUT);
	pinMode(RedpinLock, OUTPUT);
	pinMode(GreenpinUnlock, OUTPUT);
	//ServoMotor.attach(11);
	LockedPosition(true);
	//digitalWrite(in1,LOW);
}

void loop()
{
	digitalWrite(in1,HIGH);
	sensor=digitalRead(pirpin);
	char key = keypad.getKey();
	if (key == '*' || key == '#')
	{
		position = 0;
		LockedPosition(true);
	}
	if (key == password[position])
	{
		position ++;
	}
	if (position == 3)
	{
		LockedPosition(false);
	}
	delay(100);
}

void LockedPosition(int locked)
{
	if (locked)
	{
		digitalWrite(RedpinLock, HIGH);
		digitalWrite(in1,HIGH);
		digitalWrite(GreenpinUnlock, LOW);
		//ServoMotor.write(11);
	}
	else
	{
		delay(1000);
		if(sensor==1)
		{
			Serial.println("sensor worked");
			digitalWrite(in1,LOW);
		}
		else
		{
			digitalWrite(in1,HIGH);
		}
		digitalWrite(RedpinLock, LOW);
		digitalWrite(GreenpinUnlock, HIGH);
		//ServoMotor.write(90);
	}
}