@LastSamurai Here is the code for my PIR and Light sensore node:
https://github.com/abmantis/MySensors-Sketches/blob/master/MotionLightSensor/MotionLightSensor.ino
It is a bit complex, sorry. Also, ignore the temperature parts since that is a WIP and is untested.