by theredbryophyte @instructable.com:
In this Instructable, I will show you how to make your Christmas lights turn on when there is someone in the room using an Arduino, relay module and a PIR motion sensor.
I made this because I wanted the lights on my miniature Christmas tree to turn on to greet someone when they opened the door.