   {
       // setPixels(instantPulseCount);
       instantPulseCount = 0;
+      if(previousPulseCount != pulseCount)
+        flowing = true;
+      else
+        flowing = false;
+      previousPulseCount = pulseCount;
       previousSecond = currentSecond;
   }
 }

{
  Serial.begin(9600);
  strip.begin();
  strip.show();

  //get persistent values
  pulseCount = EEPROM.read(EEPROM_ADDR_PULSE_COUNT);
  maxPulseCount = EEPROM.read(EEPROM_ADDR_MAX_PULSE_COUNT);
  percentFull = EEPROM.read(EEPROM_ADDR_PERCENT_FULL);

  //pin modes
  pinMode(pin0, INPUT_PULLDOWN);

#define EEPROM_ADDR_PERCENT_FULL 3
#define PIXEL_PIN D2
#define PIXEL_TYPE WS2812B
#define PIXEL_COUNT 7

Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, PIXEL_TYPE);

