Transitioning Embedded Systems To Intelligent Environments: A Journey Through Evolving Technologies