 #include <avr/io.h>
 #include <SoftwareSerial.h>
 
+#define FILENAME "PELLET_Cage12.csv"
 
 #define DISPLAY_SERIAL_RX_PIN 255 // we don't need a receive pin, 255 indicates this
 // Connect the Arduino pin 3 to the rx pin on the 7 segment display


SoftwareSerial LEDserial = SoftwareSerial(DISPLAY_SERIAL_RX_PIN, DISPLAY_SERIAL_TX_PIN);
SdFat SD;


long previousMillis = 0;
long startTime = 0;

  }

  motor.setSpeed(35);
  setMotorToTurn();

  delay (500);
  
  // get ready for what the system should be doing
  PIState = digitalRead(PIPin);
  lastState = 0;
  
}

void loop()
