running a python code on raspberry pi 5 to test ultrasonic_sensor I have updated the code to look like this: