i want atmega to remain in sleep mode until a trigger signal is given to it by ADC (if it fulfill some condition) and then atmega process the remaining code and then go back to sleep again.