Wiring up a current limiting resistor with an IR LED burns of the LED
See all other answers, in a schematic:

LEFT: what you wanted

RIGHT: what you made







simulate this circuit &ndash; Schematic created using CircuitLab