Welcome to the MySensors community @xsav The easiest way would probably be to remove everything related to TimerOne and replace with this: void loop(){ wait(3*60*1000); Demomodus(); } If you want to use TimerOne you need to enter the number of microseconds to sleep, not milliseconds.