Using data gathered from measuring distances with the ultrasonic sensor, I was able to create a formula that converts the time it takes the waves to bounce off the nearest object into a measurement of inches. Then using an if statement in the code, I was able to turn the micro servo 90 degrees when an object entered within 12 inches of the ultrasonic sensor. This mechanism mimics that of an automatic door you would see before entering most grocery stores.