IR Receive Code

Hello all,

I have a digital IR Transmitter Module as well as a digital IR Receiver Module wired up on my Arduino Mega. My goal is a simple one. All I want to do is send an IR signal from the transmitter to the receiver. I do not need to worry about an IR remote.

The "tone()" function works great for the transmitter but I cant seem to get my arduino to process it. The led on the receiver module lights up when there is a transmission so I know its receiver something. I just need the proper code for my arduino to process it.

Perhaps there is a complementary built in function to receive the "tone()" function?

Any help would be great. Thanks

You could start with this.