Learn PIR motion sensor wiring and connection diagram with step-by-step guide, working principle, installation tips, and testing for home and office lights.