if SerialData = "U" then GoodSync
if serialdata = ID then GoodAdr
if state = %00000011 then GoodCmd

What if
if state
was changed to
if serialdata
?