This project is all about controlling appliances via xBee communication in Proteus (a simulation software). Here you can see there is a GAS SENSOR and beside that there is a FLAME SENSOR (the library can be downloaded from https://www.theengineeringprojects.com/) and the xBee is connected to Arduino through Tx and Rx pins of Arduino and the lamps and the DC motor are connected to supply voltage through a relay. Each relay has one pin connected to Arduino and the other to ground. If the relay is on, then that component is connected to supply and vice versa.”

Link