     Serial.print("error: ");
     Serial.println(errorbuffer);
     clean_buffer(); 
+    digitalWrite(ledPin1,LOW);
   }
 
   if(buttonState==HIGH){
     strcpy(errorbuffer,"error-1");
+    digitalWrite(ledPin1,HIGH);
   }
 
-  if(buttonState1==HIGH)
+  if(buttonState1==HIGH){
     clean_errorbuffer();
+    digitalWrite(ledPin1,LOW);
+  }
 }
 


//clear error buiffer
void clean_errorbuffer(){
  memeset(errorbuffer,0,sizeof(errorbuffer));
}

//initialization of PinMode
int init_pinMode(){
  pinMode(buttonPin,INPUT);
  pinMode(buttonPin1,INPUT);
  pinMode(ledPin,OUTPUT);

  return 0;  

const int buttonPin=2;     //Digital Pin 2. 
const int buttonPin1=3;    //Digital Pin 3. 
const int ledPin=4;        //Digital Pin 4.
const int ledPin1=13;      //Digital Pin 13.
const int potPin=A0;       //Analog Pin 0.

//Variables
