IR HELP!!!!-

Here is my code:

#include <IRremote.h>

#define PIN_IR 3      //ir led
#define PIN_DETECT 2  //receiver
#define PIN_STATUS 13 //output led

IRsend irsend;

void setup(){

void loop(){
  if(digitalRead(PIN_DETECT) == HIGH){
    digitalWrite(PIN_STATUS, HIGH);
    digitalWrite(PIN_STATUS, LOW);

Is there anything wrong with it? Because for some reason either the IR LED isn't emitting at 38 kH or the receiver isn't receiver it? The LED light (which is for the status) only stays off.

Check that the IR LED is working at all by taking a picture of it using a digital camera

What Arduino board are you using ?

I am using an arduino uno

Do you have ONE setup or TWO ? Because this code will send ONE packet at startup, then go into to the loop(). It will never receive it's own packet, so you need TWO uno's.

In case you have two uno's: a schematic of your wiring helps. Does your led light up (see Bob's comment, you can check with your camera), is your IR sensor connected in the right way ?