Your LED will also need a resistor. You may have an LED with a built in resistor - if your LED is rated to 12V or 24V then it probably has a built in resistor. If youre using a plain LED from Maplin or wherever then youll need an extra resistor in series with it. The value of it will depend on the voltage youre running at and the forward voltage drop of the LED.