I am working on my first Raspberry Pi project while following a course for creating a line-following robot. This is the course. I followed all the instructions
from gpiozero import MotionSensor While true: MotionSensor(17).when_motion() print("motion detected") returns error: Traceback (most recent call last