IR REMOTE SENSING PROGRAM COMPILING ERROR

I AM GETTING BELOW ERROR

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: 'TKD2' was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^

I AM GETTING THE BELOW ERROR

C:\Program Files (x86)\Arduino\libraries\RobotIRremote\src\IRremoteTools.cpp:5:16: error: ‘TKD2’ was not declared in this scope
int RECV_PIN = TKD2; // the pin the IR receiver is connected to
^
MY PROGRAM IS BELOW
#include <IRremote.h>
#include <IRremoteInt.h>
#include <IRremoteTools.h>

int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;

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

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

Hi,

Can you please post a copy of your sketch, using code tags?
Please use code tags.. See section 7 http://forum.arduino.cc/index.php/topic,148850.0.html

Have you got all three libraries installed?

Tom..... :slight_smile:

IR REMOTE SENSING PROGRAM COMPILING ERROR

RAVISHANKAR:
I AM GETTING BELOW ERROR

I am getting shouting.

I ignore shouting.

Get your caps lock key fixed, varlet.

You have to delete the RobotIRemote library from the libraries folder.
In my case, this solved the problem.