Ok, here is the problem.

Hi,

The issue is that the code is not written correctly. I want to create a function to control the servo base upon the
data received from the Ping sensor. I'm not sure how to refer to the Ping sensor. I guess I can not address it by the pin. I tried
and it did not work. Thanks.