```
{
if (inches > 50) // more than 50 inches
{
for(int fadeValue1 = 1500 ; fadeValue1 <= 1600; fadeValue1 +=100)
//for(int fadeoutValue = 1600 ; fadeoutValue >= 1500; fadeoutValue -=100);
motor1.writeMicroseconds(fadeValue1);
motor2.writeMicroseconds(1500);
delay(1000);
}
else if ((30 < inches) && (inches <= 50)) // between
{
for(int fadeValue2 = 1600 ; fadeValue2 <= 1800; fadeValue2 +=100)
//for(int fadeoutValue2 = 1600 ; fadeoutValue >= 1500; fadeoutValue -=100)
{
motor1.writeMicroseconds(fadeValue2);
motor2.writeMicroseconds(fadeValue2);
delay(1000);
{
}
else if ((24 < inches) && (inches <= 30)) // between
{
for(int fadeValue3 = 1600 ; fadeValue3 <= 1700; fadeValue3 +=100)
//for(int fadeoutValue2 = 1600 ; fadeoutValue >= 1500; fadeoutValue -=100)
{
motor1.writeMicroseconds(fadeValue3);
motor2.writeMicroseconds(fadeValue3);
delay(1000);
}
else if ((12 < inches) && (inches <= 24) ) // between
{
for(int fadeValue4 = 1600 ; fadeValue4 <= 1650; fadeValue4 +=100)
//for(int fadeoutValue2 = 1600 ; fadeoutValue >= 1500; fadeoutValue -=100)
{
motor1.writeMicroseconds(fadeValue4);
motor2.writeMicroseconds(fadeValue4);
delay(1000);
}
}
else // closer than 12 inches
{
motor1.writeMicroseconds(1500);
motor2.writeMicroseconds(1500); // stop motors
delay(1000);
}
}
```

On the second else if statement, I am getting an error saying " ‘else’ without a previous ‘if’ ". I cant see why i am getting this error. Can anybody else see where this error is coming from?