            derivativeBuffer, "");
 
   Serial.println(logBuffer);
+#endif
 
     
 

        }
      }
      switchedCount = 1.5 * smoothedSenseSize;
//      if (switchedCount < 50) {
//        switchedCount = 50;
//      }
//      smoothedSenseIter = 0;
    }
    
    switchOutputs(glow);

bool isOn = true;
bool justSwitched = false;
int switchedCount = 0;

#define smoothedSenseSize 15
int smoothedSenseHistory[channelCount][smoothedSenseSize];
