#include <IRremote.h> // IR Remote Library
const int irsignalpin = 9; // Define Sensor Pin

// Define IR Receiver and Results Objects
IRrecv irrecv(irsignalpin);
decode_results results;


void setup(){
  Serial.begin(9600); // Serial Monitor 9600 baud
  irrecv.enableIRIn(); // Enable the IR Receiver
}

void loop(){
  if (irrecv.decode(&results)){  // this checks to see if a code has been recieved
    Serial.print("Remote Code: ");
        Serial.println(results.value, HEX); // Print the hex value
        irrecv.resume(); // recieve the next value 
  }
}
