You need to program a microprocessor that would have a temperature, gas, humidity and PIR sensor connected to it.
It would send the data to a PC via a Zigbee and receive commands from the PC via the Zigbee to control motors.
In addition, You need a terminal to control the motors from the PC.