You will need to wire the fog machines activation button into the motion sensor as well. Here is a rough diagram using a Picoboo controller.
http://www.frightprops.com/FrightProps/Props/Electronics/Pico2FogTimer.jpg
http://www.frightprops.com/FrightProps/Props/Electronics/Pico2FogTimer.jpg