reading multiple photosensors separately so relais don't jitter

Hey guys and girls,

i'm stuck with my code, seems simple; 6 photosensors that look for a bright light en if the light is present a relais switch will turn ON. i got this far but when 2 sensors (or more) get light input at the same time it jitters because of the delay i inserted. even without the delay it jumps between the channels that got input.

i can't find out how to code it so multiple switches stay ON at the same time.

also: i can't find a trick so that i have 8 analog inputs on my Arduino UNO. tips anyone?

thanx in advance

void setup() {

pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);  // relais
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);   

Serial.begin(9600);
}

void loop(){
  
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);


Serial.println(analogRead(A0));
if (analogRead(A0) > 950){ 
  LampEen();
}

//Serial.println(analogRead(A0));
if (analogRead(A1) > 950){ 
  LampTwee();
}

//Serial.println(analogRead(A0));
if (analogRead(A2) > 950){ 
  LampDrie();
}

}


void LampEen(){
  
  digitalWrite(2,LOW);
  delay(100);
 // digitalWrite(2,HIGH);
  
}

void LampTwee(){
  
  digitalWrite(3,LOW);
  delay(100);
 // digitalWrite(3,HIGH);
  
}

void LampDrie(){
  
  digitalWrite(4,LOW);
   delay(100);
  // digitalWrite(4,HIGH);
  
}

void LampVier(){
  
  digitalWrite(5,LOW);
 // delay(100);
 // digitalWrite(5,HIGH);
  
}

void LampVijf(){
  
  digitalWrite(6,LOW);
 // delay(100);
  //digitalWrite(6,HIGH);
  
}

void LampZes(){
  
  digitalWrite(7,LOW);
 // delay(100);
 // digitalWrite(7,HIGH);
  
}

By the way, i think it is because of the -IF- statements but can't find out what the proper way to do is.

pardon my english, i'm dutch and learning... code i mean. my english is just not that good.

Made a slight change.

with a WHILE statement it does is more like i want to but still not the optimal. when i shine a bright light over the first sensor and then second, third and so on it keeps all the relais in HIGH but when i do it in the opposite direction it doesn't (off course because the code goes from top to bottom)

how to fix this issue??

hope someone is willing to help me out!

void setup() {

pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);  // relais
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);   



Serial.begin(9600);
}

void loop(){
  
digitalWrite(2, HIGH);
digitalWrite(3, HIGH);
digitalWrite(4, HIGH);
digitalWrite(5, HIGH);
digitalWrite(6, HIGH);
digitalWrite(7, HIGH);


Serial.println(analogRead(A0));
while (analogRead(A0) > 950){ 
  LampEen();
  
}

//Serial.println(analogRead(A0));
while (analogRead(A1) > 950){ 
  LampTwee();

}

//Serial.println(analogRead(A0));
while (analogRead(A2) > 950){ 
  LampDrie();

}

}


void LampEen(){
  
  digitalWrite(2,LOW);
  delay(300);
 // digitalWrite(2,HIGH);
  
}

void LampTwee(){
  
  digitalWrite(3,LOW);
  delay(300);
 // digitalWrite(3,HIGH);
  
}

void LampDrie(){
  
  digitalWrite(4,LOW);
   delay(300);
  // digitalWrite(4,HIGH);
  
}

void LampVier(){
  
  digitalWrite(5,LOW);
 // delay(100);
 // digitalWrite(5,HIGH);
  
}

void LampVijf(){
  
  digitalWrite(6,LOW);
 // delay(100);
  //digitalWrite(6,HIGH);
  
}

void LampZes(){
  
  digitalWrite(7,LOW);
 // delay(100);
 // digitalWrite(7,HIGH);
  
}