How do I wire a fog machine to be triggered by a motion sensor?

I have a couple fog machines purchased at Target around Halloween last year. The model has a switch on an extension cord which when pressed triggers the fog machine to produce fog for 5-10 seconds. They work great but I want to use a remotely placed motion sensor, like from a motion sensor flood light to trigger the fog machine when people walk past. I purchased a replacement motion sensor module for a flood light and looked at the wiring of the switch and the fog machine but haven't figured out how to properly wire it. The motion sensor module has a "test" setting which would turn on the light fixture for 5 seconds, I want to use this to trigger the fog periodically as people walk past. Any help would be appreciated. A couple photos to show the pieces are included. If more detailed information about the wiring is needed please let me know.

jj.inc6 years ago
 If your fog machine is like mine it has a detachable trigger w/ a light and the socket for it looks like one on a computer cord.  The easiest thing to do would be to find a cheap motion sensor w/ a little dinger on it.  Then replace the speaker with the switch on your regular remote.
I don't actually have these labeled with the correct prong-poles but this gives you an idea
Motion Sensor fog machine.png
lofty7 years ago
We did this last year for halloween but I made a laser gate instead. You should take the button apart that controls the fog machine and wire a relay to the 2 contacts of the button. I don't know how those sensors work but you should check the manual for the connections and measure the voltage that it outputs. If it's not the right voltage for your relay you might need to use a transistor to control the relay. Heres how we did it anyways.... For the laser gate it was just a cheapo laser pointer with the button taped down aimed at a light dependant resistor. Put the LDR in a voltage divider with another resistor, then take the midpoint into a comparator op-amp, then make that trigger a monostable a 555 timer which will control the relay.