void setup(){
pinMode(21, OUTPUT);
pinMode(22, OUTPUT);
}
void loop(){
int waarde=analogRead(34);
if(waarde>2048){
digitalWrite(21, HIGH);
digitalWrite(22, LOW);
}
else{
digitalWrite(21, LOW);
digitalWrite(22, HIGH);
}
}