This program uses a PIR motion sensor connected to GPIO pin 17 on a Raspberry Pi. It sets up the pin as input and enters an infinite loop. Each loop iteration reads the sensor state. If motion is detected (GPIO.input(17) returns True), it prints "Motion Detected!". Otherwise, it waits silently. The program keeps checking continuously, printing the message each time motion is detected. Beginners often wonder why the message prints multiple times; this happens because the loop runs fast and prints every time the sensor is active. To prevent this, you can add a delay or track previous state. The execution table shows the sensor state and program actions step by step.