I am building a robot that uses a Ping))) sensor as the "eyes" of the robot. The problem occurs after I upload the code to the arduino. It seems that the arduino is executing fine, but my Ping))) sensor has some strange behavior. Whenever the arduino starts to execute the code, the Ping))) sensor flashes on then off. It only collects data for the first half-second.

Here is my setup:Two Continuous Rotation Servo Motors Connected to 5V, ground, and pins 9 and 6.Ping))) Sensor connected to 5V(Same as servos), pin 7, and Ground.-There are no resistors, capacitors, transistors, or any other electronic parts. Just motors and the Ping))) sensor.