 Stepper motor(MOTOR_STEPS_PER_REVOLUTION, MOTOR_INPUT1_PIN, MOTOR_INPUT2_PIN, MOTOR_INPUT3_PIN, MOTOR_INPUT4_PIN);
 
 int logData() {
+  String year, month, day, hour, minute, second;
   DateTime datetime = RTC.now();
   year = String(datetime.year(), DEC);
   month = String(datetime.month(), DEC);

SoftwareSerial LEDserial = SoftwareSerial(rxPin, txPin);


///
// any pins can be used
//#define SCK 13
//#define MOSI 11
//#define SS 4

//Adafruit_SharpMem display(SCK, MOSI, SS);

//#define BLACK 0
//#define WHITE 1

///

//int pokeCount = 0;

long previousMillis = 0;
long startTime = 0;
long timeElapsed = 0;
long day2 = 86400000; // 86400000 milliseconds in a day
long hour2 = 3600000; // 3600000 milliseconds in an hour
long minute2 = 60000; // 60000 milliseconds in a minute
long second2 =  1000; // 1000 milliseconds in a second

const int CS_pin = 10;
RTC_DS1307 RTC;    // refer to the real-time clock on the SD shield
String year, month, day, hour, minute, second, date, time;
String time2, time3;
File dataFile;

const int MOTOR_INPUT1_PIN = 7 ;

  }

  if (!SD.begin(CS_pin)) {
    Serial.println(F("Card failed, or not present"));
    // don't do anything more:
    while (1) ;
  }

  Serial.println(F("Card initialized."));

  dataFile = SD.open("PELLETJuly.csv", FILE_WRITE);
  if (! dataFile) {
    Serial.println(F("Error opening datalog.txt"));
    // Wait forever since we cant write data
    while (1) ;
  }

  else {
    dataFile.print(time);
    dataFile.println(F("Time,Pellet Count,Pellet Drop Delay"));
    dataFile.close();
  }

