Assign problem

I want to assign result to variable which is coming from code below.

There is no variable coming from that code.

That code is sending data to the serial port.

So, try again. What variable do you want to assign a value to? Where is that value to come from?