First, we should wire in and secure these sensors to the robot. We will talk about the requirements for wiring them and go a little further into the voltage levels that we touched upon in chapter 9 Programming RGB Strips in Python, explaining why we use them. We will then write some simple test code that we can use to base our behavior code on in the next section. After this selection, the robot block diagram will look like what's shown in the following diagram:
Robot block diagram with ultrasonic sensors