If exiting sensors use the RS485 protocol, just add a convert module. So, the sensors can access the cloud IoT platform through the gateway. And according to the received data, the platform can control lights, air conditioners, fans, heaters by connected remote-control.