RGB_music

RGB_music.ino:8:19: error: expected unqualified-id before ‘{’ token
RGB_music.ino:15:18: error: expected unqualified-id before ‘{’ token
Ошибка компиляции.

my code

int LedR=9;
int LedG=10;
int LedB=11;
int sensorPin=1;
int Ssensorval=0;

void setup ();{
pin Mode (LedR, OUTPUT);
pin Mode (LedG, OUTPUT);
pin Mode (LedB, OUTPUT);
Serial.begin (9600);
}

void loop ();{

sensorval=analogRead(sensorPin);
Serial.println(sensorval);
digitalWrite(LedR,LOW);
digitalWrite(LedG,LOW);
digitalWrite(LedB,LOW);
delay(1);

if (sensorval>10) { digitalWrite (LedG,HIGH);}
if (sensorval<25) { digitalWrite (LedG,LOW);}
if (sensorval>25) { digitalWrite (LedB,HIGH);}
if (sensorval<40) { digitalWrite (LedB,LOW);}
if (sensorval>40) { digitalWrite (LedR,HIGH);}
delay(1);

}

Where is inaccurate ?

This is how you should post code. I have corrected for you also.

int LedR=9;
int LedG=10;
int LedB=11;
int sensorPin=1;
int Ssensorval=0;

   void setup () {
     pin Mode (LedR, OUTPUT);
     pin Mode (LedG, OUTPUT);
     pin Mode (LedB, OUTPUT);
     Serial.begin (9600);
   }
   
   void loop () {
   
     sensorval=analogRead(sensorPin);
     Serial.println(sensorval);
     digitalWrite(LedR,LOW);
     digitalWrite(LedG,LOW);
     digitalWrite(LedB,LOW);
     delay(1);
   
   
     if (sensorval>10) { digitalWrite (LedG,HIGH);}
     if (sensorval<25) { digitalWrite (LedG,LOW);}
     if (sensorval>25) { digitalWrite (LedB,HIGH);}
     if (sensorval<40) { digitalWrite (LedB,LOW);}
     if (sensorval>40) { digitalWrite (LedR,HIGH);}
     delay(1);
 
   }

This should compile and upload. But there are other “inaccuracies” I suspect. Test it.

Thank you so much