Smart Building Technologies: Enhancing Efficiency and Security