Implementation:The Django master and Flask slave components are deployed on separate Raspberry Pi devices within the building. The MQTT server facilitates communication between these components, ensuring a responsive and synchronized system. Device control is executed through the Flask slave, with commands issued and monitored via the Django web interface.