Smart Sensors and Home Automation: Enhancing Safety and Comfort