 #include <avr/power.h>
 #include <avr/wdt.h>
 #include <SdFat.h>                // SD and RTC libraries
-SdFat SD;
 #include "RTClib.h"
 #include <Wire.h>
 #include <Stepper.h>

    logData();
    pelletCount ++;
    Serial.println(F("It did work"));
    LEDserial.print("v"); // this is the reset display command
    delay(5); // allow a very short delay for display response
    LEDserial.print(pelletCount);
    lastState = PIState;

  }

  sleep_bod_disable();
  sei();
  sleep_cpu();
  sleep_disable();
}

