const int ledRed = 13;
#define ledGreen 10
#define ledBlue 9
#define ledOrange 7
#define ledYellow 6
int value = 60;
void setup() {
Serial.begin(115200);
pinMode(ledRed, OUTPUT);
pinMode(ledGreen, OUTPUT);
pinMode(ledOrange, OUTPUT);
pinMode(ledYellow, OUTPUT);
pinMode(ledBlue, OUTPUT);
}
void loop() {
if(value < 50)
{digitalWrite(ledRed, HIGH); }
else if(value < 60)
{digitalWrite(ledOrange, HIGH); }
else if(value < 70)
{digitalWrite(ledYellow, HIGH); }
else if(value < 80)
{digitalWrite(ledGreen, HIGH); }
else
digitalWrite(ledRed, LOW);
digitalWrite(ledGreen, LOW);
digitalWrite(ledOrange, LOW);
digitalWrite(ledYellow, LOW);
digitalWrite(ledBlue, HIGH);
delay(100);
digitalWrite(ledBlue, LOW);
delay(1000);
}