   senseResults = senseAll(2300, true);
   for (int i = 0; i < 4; i++) {
     if (senseResults[i] > 620) { 
+      isSense_active[i] = false;
+    }
+  }
+
+  senseResults = senseAll(1000, true);
+  for (int i = 0; i < 4; i++) {
+    if (isSense_active[i]) { 
       inactiveMeasure[i] = senseResults[i];
-      isSense_active[i] = false;
     }
   }
 }

#define increaseWindow 13
#define pureIncreaseThreshold 5
#define increaseThresholdWithImpulse 3
#define impulseThreshold 3
#define bigImpulseThreshold 6
#define glowTime_us 1700

void loop() {
    senseResults = senseAllActive(1500, true);
    
    smoothedSenseIter = (smoothedSenseIter + 1) % smoothedSenseSize;


//    }
    // digitalWrite(elEnable, LOW);
    PORTF = PORTF & B11011111;
    for (int i = 0; i < 20; i++) {
      switchHalfOutputsA();
      spinner = 0;
      while(spinner < 34) { 
        spinner++;
      }
      
      switchHalfOutputsB();
      spinner = 0;
      while(spinner < 34) { 
        spinner++;
      }
    }
