void setup() { // put your setup code here, to run once void loop() { // put your main code here, to run repeatedly: val = analogRead(potPin); digitalWrite(ledPin2 ...