Adding read atmega function