Code not working, please help!

Im using the ultrasonic range finder for the first time. There was some confusion at first but I got a successful test out of it. So when I started actually writing the code for it to move I kept getting “Ultrasonic Interrupt port 8 is out of range”. I originally had the output on digital 1 and input on digital 11 which worked on the test. So when I kept getting that error I switched from 11 to 8. At this point im lost, can anyone help?

http://postimg.org/image/chjmokd4f/
rangefinder.jpg

Check and see if your getting an error on the terminal window. Try the ultrasonic sample and see if your sensor works. Open -> Samples