diff --git a/arduino/door_status.ino b/arduino/door_status.ino index ff1a4f5..6161ae3 100644 --- a/arduino/door_status.ino +++ b/arduino/door_status.ino @@ -32,7 +32,6 @@ void loop(){ Serial.print(space_status_b4); Serial.print(" "); Serial.println(space_status); - delay(DELAY_TIME); // pin check of the reed sensor and low pass filter if (pin_status == 0){ @@ -55,6 +54,8 @@ void loop(){ space_status_b4 = 0; } + delay(DELAY_TIME); + // ampel / traffic light signals if (space_status_b4 == 1) { // closed