Hi, I have a similar problem. I'm using IR sensors KY005 and KY022 in same Arduino NANO. IR Rx in pin 3 and IR Send in pin 2.
IR is sending, I can see it using my iPhone front camera.
Led on KY022 (receiver) flash when getting a message. And also flash when I remove/disconnect its data pin...
I'm using code above but nothing is decoded.
Any help is more than enough.
This project is for a mail detection in a remote mailbox. Communication using RF24 which is working
Thanks