not declared in this scope? can you help me

#include <Servo.h>
Servo mijnServo;
int pos = 0;
int speakerpin = 7;
int RPin = 13;
int LPin = 12;
int ldrPin=0;
int times=0;

void setup() {
pinMode(LPin, OUTPUT);
pinMode(RPin, OUTPUT);
pinMode(ldrPin, INPUT);

mijnServo.attach(9);

Serial.begin(9600);

}

void loop() {

int licht = analogRead(ldrPin);

if (licht <50) {

times=times+1;

if (times==1){
start2(); //here is where the problem is (not declared in this scope)

}

if (times==2){
start3();

}

if(times==3){
start4();
times=0;

}
}

void start2() {
digitalWrite(RPin, HIGH);

for (pos=0;pos<90;pos=pos+1){
mijnServo.write(pos);

}

delay(600);

for (pos=90;pos>=1;pos=pos-1){
mijnServo.write(pos);
}

delay(120);
digitalWrite(LPin, HIGH);

delay(400);
digitalWrite(RPin, LOW);
digitalWrite(LPin, LOW);

delay(200);
digitalWrite(RPin, HIGH);
digitalWrite(LPin, HIGH);

}
void start3() {

//for (int k=0;k<1;k++){

delay(300);
digitalWrite(RPin, LOW);
digitalWrite(LPin, LOW);

delay(200);
for (pos=0;pos<90;pos=pos+1){
mijnServo.write(pos);
}

delay(300);
for (pos=90;pos>=1;pos=pos-1){
mijnServo.write(pos);
}
delay(500);
digitalWrite(RPin, HIGH);
digitalWrite(LPin, HIGH);

}

start4() {
digitalWrite(RPin, LOW);
digitalWrite(LPin, LOW);

delay(250
digitalWrite(RPin, HIGH);
digitalWrite(LPin, HIGH);

delay(250
digitalWrite(RPin, LOW);
digitalWrite(LPin, LOW);

You need to start with putting EVERY { on a line BY ITSELF. Then, try to use Tools + Auto Format. You can't, because you are missing a } at the end of your code.

After you add that, and Auto Format does its job, get rid

of the excessive

blank lines in

your code.

You'll see that start2() is declared INSIDE of loop(), and that is NOT allowed.

You have a ton of other errors, too.

 delay(250
  digitalWrite(RPin, HIGH);

oops