Atmega328 not Working in Circuit SOLVED!

You do not have a proper voltage divider on the input for the battery measurement.