I used to build a circuit board version using light sensitive diod and a flash light source.
I didnt make the laughing dog. :P