const int LED1 {2};
int const LED2 {6};
const int LED3 {12};
int const POT_PIN {14};

void setup() {
  // put your setup code here, to run once:
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(LED3, OUTPUT);
}

void loop() {
  // put your main code here, to run repeatedly:
  
int pot_pin_tal = analogRead(POT_PIN);
// pot_pin_tal får en værdi mellem 0 og 1023

if (pot_pin_tal > 100) digitalWrite(LED1, HIGH);
                  else digitalWrite(LED1, LOW);

if (pot_pin_tal > 600) digitalWrite(LED2, HIGH);
                  else digitalWrite(LED2, LOW);

if (pot_pin_tal > 850) digitalWrite(LED3, HIGH);
                  else digitalWrite(LED3, LOW);               
}