To enable interrupts, a library (header file) must be included:#include avr/interrupt.h In the main function (before the endless loop) the global interrupt command must be invoked: sei();