 
 void loop()
 {
-//   pinVal(pin0, &pin0Value, pin0Name);
-//   pinVal(pin1, &pin1Value, pin1Name);
-//   pinVal(pin3, &pin3Value, pin3Name);
-//   pinVal(pin4, &pin4Value, pin4Name);
-//   pinVal(pin5, &pin5Value, pin5Name);
-  pinVal(pin6, &pin6Value, pin6Name);
-  
-  float percent = (float)pulseCount / (float)maxPulseCount;
-  percentFull = (int)(percent * 100.0f);
-  if(percentFull > 100)
-    percentFull = 100;
-  EEPROM.update(EEPROM_ADDR_PERCENT_FULL, percentFull);
-
-  if(flowing)
-  {
-    animateTap();
+  pinVal(flowTapPin0, &flowTapPin0Value, flowTapPin0Name);
+  pinVal(flowTapPin1, &flowTapPin1Value, flowTapPin1Name);
+  pinVal(flowTapPin2, &flowTapPin2Value, flowTapPin2Name);
+  
+  float percent = (float)pulseCountT0 / (float)maxPulseCountT0;
+  percentFullT0 = (int)(percent * 100.0f);
+  if(percentFullT0 > 100)
+    percentFullT0 = 100;
+  // EEPROM.update(EEPROM_ADDR_PERCENT_FULL, percentFull);
+
+  if(flowingT0)
+  {
+    animateTap(stripT0);
   }
   else
   {
-    if(pulseCount > maxPulseCount)
-      pulseCount = maxPulseCount;
-    EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
-    recalculateTapColor();
+    if(pulseCountT0 > maxPulseCountT0)
+      pulseCountT0 = maxPulseCountT0;
+    // EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
+    recalculateTapColor(stripT0);
+  }
+
+  if(flowingT1)
+  {
+    animateTap(stripT1);
+  }
+  else
+  {
+    if(pulseCountT1 > maxPulseCountT1)
+      pulseCountT1 = maxPulseCountT1;
+    // EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
+    recalculateTapColor(stripT1);
+  }
+
+  if(flowingT2)
+  {
+    animateTap(stripT2);
+  }
+  else
+  {
+    if(pulseCountT0 > maxPulseCountT2)
+      pulseCountT0 = maxPulseCountT2;
+    // EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
+    recalculateTapColor(stripT2);
   }
 }
 
 int resetPulseCount()
 {
-  pulseCount = maxPulseCount;
-  EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
+  // pulseCount = maxPulseCount;
+  // EEPROM.update(EEPROM_ADDR_PULSE_COUNT, pulseCount);
   return 1;
 }
 
 int setCalibration(int val)
 {
-  maxPulseCount = val;
-  EEPROM.update(EEPROM_ADDR_MAX_PULSE_COUNT, maxPulseCount);
-}
-
-void pinVal(int pin, int* pinValue, String pinName)
+  // maxPulseCount = val;
+  // EEPROM.update(EEPROM_ADDR_MAX_PULSE_COUNT, maxPulseCount);
+}
+
+void pinVal(int pin, int* pinValue, String pinName, int* pulseCount, 
+            int* previousPulseCount, int* instantPulseCount, bool* flowing)
 {
   if(digitalRead(pin) == HIGH)
   {

  currentSecond = Time.second();
  if(currentSecond != previousSecond)
  {
      Serial.println("pinVal Next second");
      Serial.println(previousPulseCount);
      Serial.println(pulseCount);
      Serial.println(flowing);
      Serial.println("-------------");
      // setPixels(instantPulseCount);
      instantPulseCount = 0;
      if(previousPulseCount != pulseCount)
        flowing = true;

        flowing = false;
      previousPulseCount = pulseCount;
      previousSecond = currentSecond;
  }
}

