Bathroom light with PIR, Relay, LDR

Hi, i'm trying to set a sketch making for an LDR read over 350 for example, when PIR detect movement the relay turn lights on for 5 minutes. 
if i veirfy the code im doing i haven´t any errors but doesnt work like i want.
im new programming.
can somebody guide to me 


#define LDR_pin A0
int LDR_lect = 0;
#define relay 8
#define pirpin 2
int mov = 0;
unsigned long prender = 0;


void setup () {

Serial.begin (9600);
pinMode(relay, OUTPUT);
digitalWrite(relay, LOW);
prender = millis();
pinMode(pirpin, INPUT);
delay(20000); //para estabilizar el sensor 
mov = digitalRead(pirpin);
LDR_lect = analogRead(A0);

}

void loop () {
for (prender; LDR_lect >= 350; LDR_lect++ )

prender = 5000; // 5SEG I KNOW


for (prender == 5000; mov == HIGH && LDR_lect >=350; prender++){
digitalWrite(relay, HIGH);}
{
  Serial.print("movimiento");
  Serial.print(mov);
  delay(1500);
}
 
}`Texto preformateado`

Using a PIR to turn on a light can be done completely in hardware.

yeah, and ?

no code needed. you want simple? HW only is as simple as you can get with the components in the subject.
Output from PIR drives relay. Use NO or NC pair as required. FIN.


Under $11USD

Eh?

= assignment
== comparison

What the? See post #2