Hey Jerson,
I tried changing the the code but for some reason when i try to compile the code, the following error occurrs. <code>ERROR Line 25: Bad expression. (RX.pbp)</code>

<code>rx:
serin rxpin,n1200,[WAIT($66),VALID,UTYPE,UID] 'Line 25
if VALID = 22 then hit
goto rx</code>

Is it the software i am using?
MicroCode Studio - PBP Compiler

The previous code works using RF modules but not for IR.

Regards,
Jeremy