enzyb:
The machine I want to test it on is at work so I couldnt have tested it before, I dnt have the equipement at home to do so, so I was just putting it out there to see where I went wrong.
All you need to test it is an Arduino board and a jumper wire.
Use the built in LED as the relay output so that you can see it turning on and off.
Use a jumper wire between the input pin to GND or 5V (whichever is appropriate) to simulate detection of a bottle. For added information output the value of pertinent variables to the Serial monitor.