datalogger for counter sensor with RTC HELP!

I also wonder why one of the sensor does a double count when i pressed it once. But if i unplug one pin. It actually just works right. hmmmmmm.

Im using 2 pushbuttons as my sensor. In the program i used debouncing so i don't think its the problem.