IR sensor code error

Hello, I am trying to use an ir sensor. I have a sketch I found online that should give me the hexidecimal code of each button on my remote, but I keep getting an error and I have zero clue how to fix it.

Here is the error:

C:\Users\cbogg\Documents\Arduino\libraries\Robot_IR_Remote\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

^

exit status 1
Error compiling for board Arduino/Genuino Uno.

The sketch should be attached.
If you could provide any help that would be amazing!

Thank you!

ir-code-logger.ino (831 Bytes)

TDK2 isn't the name of any Arduino pin, have you already defined that as a valid pin?

How could I fix this?

BJHenry:
TDK2 isn't the name of any Arduino pin, have you already defined that as a valid pin?

Please read through point number 7 here, and then post your code accordingly.