Problem with IR receiver and Arduino Uno

Hello,

I am trying to use an Arduino Uno and IR remote to control a string of LED lights. I downloaded the IR remote library from the internet here: https://github.com/shirriff/Arduino-IRremote. At first when I ran the example to receive IR codes from the remote it seemed that everything was working perfectly fine but I didn't know how to use the hex codes. Now I know how to use the codes but for some reason it no longer receives and IR data from the remote. I have no idea what is wrong and I have tried two different IR receivers and 3 different IR remotes.. still nothing. The serial monitor is completely blank.

My receiver is connected to pin 7 on the arduino. The code I have been using for just getting the IR codes from the remote is attached. In text:

//Get IR codes
#include <IRremote.h>

int recvPin = 7;
IRrecv irrecv(recvPin);

decode_results results;

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

void loop() {
if (irrecv.decode(&results)) {
if (results.decode_type == NEC) {
Serial.print("NEC: ");
} else if (results.decode_type == SONY) {
Serial.print("SONY: ");
} else if (results.decode_type == RC5) {
Serial.print("RC5: ");
} else if (results.decode_type == RC6) {
Serial.print("RC6: ");
} else if (results.decode_type == UNKNOWN) {
Serial.print("UNKNOWN: ");
}
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}

GetIRcodes.ino (737 Bytes)