Arduino hangs after some time I am using Atmega328p with 5V power supply,
My Arduino getting hangs [or auto restarts] after some times.

I am using libraries:


Wire.h
CRC32.h
EEPROM.h 
Arduino.h 
TimerOne.h 
RtcDS3231.h 
SoftwareSerial.h 
Adafruit_NeoPixel.h 
avr/wdt.h


I have tried to search, some people are deny to use software serial library.
Not sure if this will fix your problem, but this is a major error:

  char buf1[8], buf2[6];
  sprintf(buf1, "%08lu", myvote.mydate);
  sprintf(buf2, "%06lu", myvote.mytime);


Take a look at sprintf function reference


  A terminating null character is automatically appended after the content.


So, the text buffers are too small. It should be at least:

char buf1[9], buf2[7];