and this is the code I used. I have IRremote library, and compiling and uploading was successful.
What I want to do is to print out hex signals that are sent from the remote control I have,
and the problem is nothing happens on the serial monitor.
You would get more help if you didn't cross post, if you read the rules and posted the code correctly and gave the receiver's part number instead of a stupid mechanical drawing of it.
Also an IR remote does not send hex characters as such.