Error message

I'm new to peated throgramming and arduino.I cris sketch for my project but when i click on the verify an error message pop up 'exit status 1expected '}' at end of input.' .Anyone can help

int buzzerPin = 2;
int LdrPin = A1;
int sensorMin = 1023;
int sensorMax = 0;
int sensorValue = 0;

void setup()
{
pinMode(buzzerPin,OUTPUT);
Serial.begin(3900);
while (millis() < 5000)
sensorValue = analogRead(LdrPin);
}
void loop() {

LdrPin=analogRead(0);
if (LdrPin>80)
{
digitalWrite(buzzerPin,HIGH);
}

void loop() {

LdrPin=analogRead(0);
  if (LdrPin>80)
     {
       digitalWrite(buzzerPin,HIGH);
     } 

}  // <<---- you forgot this.

Error messages don't get much clearer than that one

Please post your sketch in [code] tags. Your whole sketch - the one you posted is missing a closing brace '}' at the end.

Thanks

I'm new to peated throgramming

I must be, too. I have no clue what this means.