Design of Fuzzy Logic Based Controller for Energy Efficient Operation in Smart Buildings