This lesson plan introduces learners (ages 6 to 12) to the topic of “Problem-Solving” digital competence by investigating the question: Can AI help us promote sustainability? The lesson starts with a brief introductory video followed by a learning activity and a challenge in the form of an AI-based game. During this activity, students try to find ways in which artificial intelligence can change the world and help us promote sustainability. Through the challenge, students will develop their own game using Pictoblox and Quarky, and/or Machine Learning and Scratch. With this game, children will programme a system to differentiate the waste based on its type (biodegradable waste or non-biodegradable waste). The lesson plan is supplemented by a step-by-step guide for programming an AI game, and a tutor handbook with implementation tips. The duration of the lesson activity is expected to be a total of 120 minutes.