MSc Thesis title: Advancing AI-Driven IoT: Enabling Proactive Adaptation of IoT Systems with Causal Discovery and Reinforcement Learning (2024)