Serial.available()

what frequency?

  • the frequency you are sending the commands?
  • the carrier-frequency of the IR-diode?
  • any other frequency?

somehow contradictory
does it receive
continiously
or in intervals?

Or do you mean the code repeats with a 1 second interval to do receiving?

Anyway there is no way around posting your complete setch like explained in this tutorial

best regards Stefan