     else{
       Serial.println("002"); //Something is wrong with the RPi Communication
     }  
-  }*/
+  }
   delay(50); 
 }

}

void loop(){
  int val = 789789;
  if (val == 789789 || val != digitalRead(3)){
    val = digitalRead(3); 
    
    if (val == HIGH){
      Serial.write("ON");
      Serial.println("000"); //healthy
    }
  
    else if (val == LOW){
      Serial.write("OFF");
      Serial.println("000"); //healthy
    }
  

  
  else{}

  if (Serial.available()){
    char i = Serial.read();
    
    if (i == '0'){
