This simple motion sensor by Arduino and PIR motion sensor. For your switch lamp or other. Please adjust delay time at 5 to 300 seconds of PIR module. Parts List Arduino UNO PIR motion Sensor 1 Channel 5V Relay Module Wiring Wiring Arduino UNO + PIR motion Sensor + Relay Module Code int sensorPin =