The objective is to design a self-sustainable building using renewable sources like solar PV panels and wind mills. All the loads in the building can be controlled by a master SCADA controller with the help of various sensors installed in the building. We design smart algorithms to effectively control these loads and reduce total energy consumption.