Servo Motor and US Proximity Sensor

@cmoll69, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project :wink: See About the Installation & Troubleshooting category.

Please edit your post, select all code and click the </> button to apply so-called code tags and next save your post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code.

This is what your functions should look like

void setup()
{
  do stuff here
}

void loop()
{
  do stuff here
}

Do your setup() and loop() look like that?