int nilai = 0;
void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);

}

void loop() {
  // put your main code here, to run repeatedly:
  nilai = analogRead(A0);
  if (nilai < 500){
    Serial.println("REDUP");
    for (int i=0; i<20; i++){
      Serial.print("A");
    }
  }
  else if(nilai >=500 && nilai <700){
    Serial.println("SEDANG");
    for (int i=0; i<40; i++){
      Serial.print("B");
    }
  }
  else{
    Serial.println("TERANG");
    for (int i=0; i<60; i++){
      Serial.print("C");
    }
  }
  Serial.println();
  delay(3000);
}