At its core, the device is triggered by the IR light generated by magic ... you are interested in making this Magic Wand Sensor. Seth has both a DIY kit and a pre-made kit available on his website.