It doesn't work KY-005

I have encountered a problem I am using a board ESP 32 and connected to it KY-005 I wrote a code to turn off the TV and nothing works for me I'm not sure that the address is correct because there is no signal receiver and I can't find out the address from the remote control, and the module KY-005 It doesn't even light up on the camera, what should I do?Library IRremote

  #include <IRremote.h>

  const int irLedPin = 27;
  IRsend irsend(irLedPin);

  void setup() {
    Serial.begin(9600);
  }

  void loop() {
    irsend.sendNEC(0x20DF10EF, 32);
    Serial.println("Sent command");
    delay(2000);
  }'

Why not buy an IR receiver and run the receive demo to find out exactly what code your remote sends?

If you don't use the KY-005, but instead connect a normal (visible light) LED with a series resistor, e.g. 220 ohms, and remove the delay(2000) does that LED light up? If it lights up then that will verify that irsend is doing something on the correct pin.

which module do you have ?

On some modules you need to solder an appropriate resistor on the PCB

120Ω when powering with 3.3V and 220Ω when powering with 5V for example for that module.

Some other modules come with a built in resistor, you need to make sure it's suited for a 3.3V operation and not a 5V operation.

➜ can you share a in focus picture of your modules and wires ?

Вот такая

You don't have resistor on board. Like @J-M-L wrote, you need separate resistor ~100-120ohm between your pin and ir emitter.
image

exaclly

there is space on the module to install a resistor


if you want something that will stay in place

Makes me wonder what's the purpose of this "module"..
It doesn't have transistor driver and in this case not even resistor, so.. just IR LED and empty pcb.

And un the picture it’s unclear if both legs of the LED are soldered

Here it is