Several versions of a program that uses a PIR motion sensor connected via GPIO to control a LIFX light
https://github.com/elias123tre/picobutton
https://github.com/elias123tre/motion_sensor_lifx
https://github.com/elias123tre/pirtimer
https://gist.github.com/elias123tre/940b0a441293c11052a8e8149da8c16d
https://github.com/elias123tre/simplepir
https://github.com/elias123tre/lifx-motion-sensor