Interrupt function on the Arduino practical example.