Help writing a component to read UART data

You can probably do this without a component if you want.

There is a way which I can’t seem to find right now. But substitutions might do the job.

Edit: have a read of this thread.