Problem with IR Remote Sensor:VS1838B

Hi everyone, a few days ago I had nothing to do and so I came across a pretty interesting video on the remote lighting of LEDs. the remote control and then said that to make this circuit work you needed to have very important codes that were then used to turn on the LEDs, then I go to the second part of the video where it shows how to connect this sensor (shown in the image below, taken from the site this guy). So I did like him, pasted the same code and made the same connections or first pin of the sensor connected to 11 as mentioned in the code (see code), second pin to GND and third pin to 3V. serial monitor, I take the remote control, press a few test buttons but the sensor does not give me any signal. Today i retryed, but this time I aimed the infrared led at the remote control sensor and opened the serial montor,result=the signal receive and transmiss the signal decoded but if i push 3 different buttons/sometimes only 1 it appears about an hundred and more and more codes like
68EF51C8
68EF51C8
68EF51C8
68EF51C8
and don't know why,don't know if the sensor is working.Let me know whit a comment :/.
Post Scriptum:
Wiring:
first pin to digital 12 of arduino
Second to GND
the extreme pin (3) to vcc (3.3V)

* Original code by:
 * http://arcfn.com door Ken Shirriff
 *
 */

// Import the IR-remote library
#include <IRremote.h>

int IrReceiverPin = 12;                 // Turn the variable "IrReceiverPin" to pin 12
IRrecv irrecv(IrReceiverPin);           // create a new instance of "irrecv" and save this instance in variabele "IRrecv"
decode_results results;                 // define the variable "results" to store the received button code

void setup()
{
    Serial.begin(9600);                 // Initialise the serial monitor

    pinMode(LED_BUILTIN, OUTPUT);       // Initialise digitale pin LED_BUILTIN as output

    // When the IR-remote library crashes we can see it from the shown text
    Serial.println("Starting IR-receiver...");

    irrecv.enableIRIn();                // start the IR-receiver

    Serial.println("IR-receiver active");

    digitalWrite(LED_BUILTIN, LOW);     // Turn off the builtin LED
}


void loop() {

    // When the IR-receiver receives a signal
    if (irrecv.decode(&results)) {

        // Print the received value as a hexadecimal value
        Serial.println(results.value, HEX);

        // Resume the IR-receiver to listen for new signals
        irrecv.resume();

        // Determine which button has been pressed
        switch (results.value) {
            case 0xFF42BD:  // button *
                digitalWrite(LED_BUILTIN, HIGH);   // Turn LED on
                break;

            case 0xFF52AD:  // button #
                digitalWrite(LED_BUILTIN, LOW);    // Turn LED off
                break;        
        }

    }
  
    delay(100);      // pause 100ms
}

Imgur: The magic of the Internet <----wiring image.

Please remove all of that color stuff from your code. It is very hard to read. And format the code with the IDE autoformat tool (crtl-t or Tools, Auto Format) before posting code.

It is much better if you post the images so that we do no have to download them or go to an external site. See How to post images.

You did not include a library for the IR decoder.

Install the IRremote library using the library manager. Here is your code with the color stuff removed and formatted and the library included. The code works for me with my Uno and IR remote decoder.

#include <IRremote.h>

int IRpin = 11;

IRrecv irrecv(IRpin);
decode_results results;

void setup()
{
   Serial.begin(9600);
   irrecv.enableIRIn(); // Start the receiver
}

void loop()
{
   if (irrecv.decode(&results))
   {
      Serial.println(results.value, DEC); // Print the Serial 'results.value'
      irrecv.resume(); // Receive the next value
   }
}

it comes a mistake copying the link from other forum question :confused: :confused: i updated the post

So, what is the problem? The code works fine for me after I fix the comment at the top of the code.

In the text you say pin 11 for the receive pin, but the code says pin 12. Which is the way that the decoder is actually connected?

Please do not make big changes to the original post. The thread loses continuity. Now, my replies #1 and #2 look stupid since you changed the OP. Put changed code into a new post.

4EB322DD
FFFFFFFF
FFFFFFFF
FFFFFFFF
FFFFFFFF

That is what I get when I press the up button on my remote. The 4EB322DD is the up button key code and the FFFFFFFF's are the repeat codes for my NEC remote. Is that what you are seeing?

No isn't that,the problem is:if i press 3 different buttons he do a new code repeated so many many times and with autoscroll i can't see the last codes,idk why is happening this...but it happens every times i click a button of my remote

Have you tried the IRreceiveDump example from the library?

No,i don't know nothing about that,how i can do this example?

In the IDE in the File menu there is an Examples selection. Click Examples and a list of the installed libraries will appear. Scroll down to IRremote and click on that. The list of examples for the library will e shown. Try some of the examples.

How is the wiring?Because i see something like "pin 15(?)"?

#if defined(ESP32)
int IR_RECEIVE_PIN = 15;
#else
int IR_RECEIVE_PIN = 11;
#endif

Do you mean that? That says that if you are using an ESP32 to use pin 15 for IR_RECEIVE_PIN. If not ESP32 (else) use pin 11 for IR_RECEIVE_PIN. So, since you are using an Uno, IR_RECEIVE_PIN is pin 11.