The program is prety simple you just have to identify the signal received from the IR emitter. I think linking the output pin of your receiver to an input pin from your uC and then just verifiing the logic level of that pin is ok.So you just choose an input pin from your uC and verifie if it's logic level 1 equals phisical 0 or different value of voltage.IF you want to decode the IR signal thats a litle bit more complicated, but from witch i understand you don't need to decode tghe signal.