ABSTRACT The Internet of Things enhances the quality of life by automating tasks and streamlining human-device interactions. However, manual device management remains time-consuming, especially in multiple or new environments that demand new settings and interactions. Learning systems aid in automating task management, but their learning times hinder personalization and struggle when the system has to interact with multiple IoT environments, impacting user experience. This paper aims to optimize knowledge sharing for IoT environments, proposing a framework that utilizes recommender systems to find optimal and reusable configurations among IoT environments and users. To that end, this work leverages teacher-student relationships in Knowledge Distillation, facilitating knowledge sharing and enhancing knowledge reuse in learning models. In addition, real-time processing eliminates training time. This approach achieves a remarkable 93.15% accuracy.