Use a Pyroelectric (or "Passive") InfraRed sensor with a micro:bit to detect the movement of people or animals.