#define opto12 3
#define opto26 4
#define opto32 5
void setup(){
pinMode(opto12, OUTPUT);
pinMode(opto26, OUTPUT);
pinMode(opto32, OUTPUT);
digitalWrite(opto12, LOW);
digitalWrite(opto26, LOW);
digitalWrite(opto32, LOW);
}
void loop(){
if(v_modul <= 12){
digitalWrite(opto26, LOW);
digitalWrite(opto32, LOW);
delay(500);
digitalWrite(opto12, HIGH);
}else if((v_modul >12) or (v_modul <=26)){
digitalWrite(opto12, LOW);
digitalWrite(opto32, LOW);
delay(500);
digitalWrite(opto26, HIGH);
}else if(v_modul > 26){
digitalWrite(opto12, LOW);
digitalWrite(opto26, LOW);
delay(500);
digitalWrite(opto32, HIGH);
}
}