Arduino UNO r3 potentiometer and 6 led's. Not working :(

Hello guys i’m new to arduino and i was working of project with contains 6 led’s and potentiometer that should turn more led’s if the analogRead will be higher. But i haven’t already used command if so i’m not sure that i’ve wrote everthing correctly. I paste my code bellow I will be glad if someone could tell me about my mistakes in code :wink:

PASTE YOUR CODE IN HERE - I DON'T MIND IF YOU OVERWRITE THESE INSTRUCTIONS - AWOL

But i haven't already used command if so i'm not sure that i've wrote everthing correctly.

So did you look at how to use an if statement?
https://www.arduino.cc/reference/en/language/structure/control-structure/if/

Note that the "else" part is optional, you don't have to have it.

Ok mate thanks a lot. If got any problems will ask again :slight_smile:

Thanks all i made it working :slight_smile: