IR Sensor

Hi I have Problem with receiving IR signals from IR receiver to Arduino_Uno

Does not appear The signal from the serial monitor

And verified by the port of Arduino And used this code

#include <IRremote.h>

int IRpin =8;
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); // Print the Serial 'results.value'
      delay(10);
     irrecv.resume();   // Receive the next value
    }
}

Please, abide by the following steps and put code tags on your program codes what you have just now posted.

Kindly reformat the program codes of your post in accordance with the following instructions: (a) Open your post in the Edit/Modify Mode.

(b) Bring the cursor at the very beginning of your code. Now, type this word: [ c o d e ]. Please, do not keep spaces among the letters while typing the word. Keep them together. I have to keep spaces due to some technical reasons.

(c) Bring the cursor at the very end of your code. Now, type this word: [ / c o d e ]. Please, do not keep spaces among the letters while typing the word. Keep them together. I have to keep spaces due to some technical reasons.

(d) Press the save button.

Now, your codes/post looks so beautiful!

Thanks for your follow-up GolamMostafa

hi you added the library in the IDE ?

if yes try use thise library IRremoteInt.h.