Servo won't respond with ultrasonic sensor

Great so I need to change my battery pack to double AAs and do I need to change my coding in any way?