Help with error message

but the problem is here somewhere i dont know what to do

Decide which is more important (or if there's another way of doing one or the other) - reading IR codes or making beep noises.