The final segment of the program will continuously check the sensor inputs to discern if the sensors detect anything.
The final segment of the program will continuously check the sensor inputs to discern if the sensors detect anything. A 'router' of sorts, the main while loop repeatedly checks the inputs: `while True:`. Within this main while loop, sub-while loops can be constructed to poll the sensors specifically. Since the sensors have been initialized as Buttons from the GPIO Zero library, the function `.is_held` is required.