     // switch to precise reference (2.56V)
     analogReference(INTERNAL);
 
-    // LED and INPUTs init
-    pinMode(LED_GREEN, OUTPUT); 
-    pinMode(LED_YELLOW, OUTPUT); 
-    pinMode(LED_RED, OUTPUT); 
-    pinMode(SW_MOTOR, INPUT); 
-    pinMode(WATER_FWD, INPUT); 
-    pinMode(WATER_AFT, INPUT); 
-
-    for(int i=0; i<4; i++){
-        // LED flash on
-        digitalWrite(LED_GREEN, HIGH); 
-        digitalWrite(LED_YELLOW, HIGH); 
-        digitalWrite(LED_RED, HIGH);
-
-        delay(1000);
-
-        // LED flash off
-        digitalWrite(LED_GREEN, LOW); 
-        digitalWrite(LED_YELLOW, LOW); 
-        digitalWrite(LED_RED, LOW);          
-    }  
+    // initial LEDs flashing
+    digitalWrite(LED_GREEN, HIGH); 
+    digitalWrite(LED_YELLOW, HIGH); 
+    digitalWrite(LED_RED, HIGH);
 
     // (reset) protection delay
-    //delay(1000);
+    delay(1000);
+
+    // reset LEDs
+    digitalWrite(LED_GREEN, LOW); 
+    digitalWrite(LED_YELLOW, LOW); 
+    digitalWrite(LED_RED, LOW);          
+
 
     // enable watchdog
     wdt_enable(WDTO_8S);
+
 
     // bmp085 init
     Wire.begin();



// time & timestamps
int DELAY_FAST = 250;
unsigned long time_slow;
unsigned long time_leds;
unsigned long delta;

// default inputs
int status_water_fwd = HIGH;
int status_water_aft = HIGH;
int status_sw_motor = LOW;
int status_led_green = LOW;
int status_led_yellow = LOW;
int status_led_red = LOW;


// the setup routine runs once when you press reset

    digitalWrite(LED_PIN, HIGH);
}


// the loop routine runs over and over again forever
void loop() {

    // serial control
    if(Serial.available() > 0) {
