@meanmrgreen You should use non-blocking code with millis() and if{}. Look e.g. at https://forum.mysensors.org/topic/461/motion-sensor https://forum.mysensors.org/topic/2717/repeater-node-with-sensor/12