Using a reed switch with Arduino

Ok, I have done the blinking LED, and everything seemed to be fine, I'm using an LED attached to the digital input 13 (which I have tried the blinking example with and was fine also.)

Here is the code, I'm taking power from the Arduino (5v) and using the 10k resistor as a pull-down. Nothing happens when the reed switch is closed at the moment.

//Turn on LED while reed switch is closed

#define LED 13 //pin for the LED
#define SWITCH 7 //input for REED SWITCH

int val = 0; //used to store input value

void setup() {
pinMode(LED, OUTPUT); //tell arduino LED is an output
pinMode(SWITCH, INPUT); //SWITCH is input
}

void loop(){
val=digitalRead(SWITCH); //read input value and store it

//check whether input is HIGH (switch closed)
if (val==HIGH) {
digitalWrite(LED, HIGH); //turn LED on
} else{
digitalWrite(LED, LOW);
}
}