Pls Help Me. Control Motion Detect Notifation Not run

All of this 100ms functions are running fast, and trying to run at the exact same time, and bumping into the 500ms one every fifth iteration. That is all conspiring to causing your disconnections.