     Serial.println(time);
     dataFile.print(time);
     dataFile.print(",");
-    dataFile.print(pelletCount);
-    dataFile.print(",");
+    for (int i = 0; i < sizeof(pelletCount); i++)
+    {
+      dataFile.print(pelletCount[i]);
+      dataFile.print(",");
+    }
     dataFile.println(timeElapsed);
     dataFile.close();
   }

  setDisplayBrightness(64);
  clearDisplay();
  delay(1); // allow a very short delay for display response
  setDisplayValues(pelletCount);
  for (int i = 0; i < sizeof(PHOTO_INTERRUPTER_PINS); i++)
  { pinMode(PHOTO_INTERRUPTER_PINS[i], INPUT); }
  pinMode(TTL_DEBUG_PIN, OUTPUT);


  else {
    dataFile.print(time);
    String temp = "";
    for (int i = 1; i <= sizeof(pelletCount); i++)
    { temp += ",Pellet Count #" + String(i); }
    dataFile.println(F("Time"+temp+",Pellet Drop Delay"));
    dataFile.close();
  }
  
