Using a reed switch with Arduino

Ok, sorted the problem. I had been an idiot and connected the circuit wrong. Thanks for the help.