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