datalogger for counter sensor with RTC HELP!

I don't know if these will address the problems you're seeing, but I see a few things that could be improved with your code:

  • Don't use the String class. It's buggy and eats up memory. Use character arrays instead, if you really need to store strings, or don't even bother (I don't see anything in your code that needs strings to work at all).
  • Use more descriptive and consistent variable names. Why, for example, are you using buttonPushCounter to count bees? Why is buttonPushCounter1 used for buttonPin2 for feeding station B? Try, for example, beeCounterA for beeSensorPinA for feeding station A.
  • Add variables for lastBeeCounterA and lastBeeCounterB.

Then you can do something like this (not compiled and tested, but the concept is sound):

if ((beeCounterA != lastBeeCounterA) || (beeCounterB != lastBeeCounterB))
  {
  logFile.print(beeCounterA);
  logFile.print(", ");
  logFile.println(beeCounterB);
  lastBeeCounterA = beeCounterA;
  lastBeeCounterB = beeCounterB;
  }

This will print a new log entry only when there's been a change to either beeCounterA or beeCounterB. Note that there's no need at all to use any kind of string construction here--you can print the first variable, then print a comma and space, then println the second variable; the println adds a newline character at the end of the line.