ultrasonic sensor - STJRush/CS5th_G5 GitHub Wiki
We started off by watching a video on how to set up the sensor to measure distance in cm. We then wrote the code off of schoology and put it all into Python. We coded and wired the sensor up to measure to make it measure distance in cm. When we ran the code we would point the sensor at at object or a wall and it would come up in python how many cm away the object/wall was. The next day we encountered a problem with the wiring so we replaced all of the wires and replaced the sensor. We also checked our code for any mistakes but we found none. this is our code
THIS IS THE WIRING