atmega sensor init