IR led will not transmit if I try to digitalread in my code

Thank you all for looking at this problem, here is a quick update, as I spent a lot of time looking at what was going wrong,

Reading the datasheet for the 328 and the error in the compiled code I finally found it!