Uses an Arduino, and PIR (passive infrared) sensor to detect motion and light up an LED. Further expanded to make an alarm sound when motion is detected.
Download the repository: git clone https://github.com/cwalk/ArduinoMotionDetection
Navigate into the project directory: cd ArduinoMotionDetection/
Open either Arduino project, and then verify/upload the project to your Arduino.