My fault; It is sending out to STDERR instead of STDOUT.
So the following should work :

trace_ir 2>&1 | while read CODE
do
echo "$CODE" | blitecho
done

maybe you should also put some waiting time in the loop, to let the codes scroll slowly. Unfortunately sleep isn't available in the default dev-image, but I think I saw it in another thread.

Frank van Gestel
_________________________
Frank van Gestel