How to fix – Motion detection and notification not working