what am i doing wrong here some help please

The fact that you are starting does not make you a dumbass - we all started there

The question is more do you want to understand what you do and Learn something or do you expect someone to write the code for you?

If you want to learn - then I would suggest you write code to perform an active wait for the IR signal in the setup() (this code is in the loop at the moment)

Once you have received te signal - proceed to the loop() and let it spin