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);
}