Images of code are worthless. And the code is incomplete. Please properly post the well formatted and complete code. Please read the forum guidelines to see how to properly post code and some information on making a good post.
Use the IDE autoformat tool (ctrl-t or Tools, Auto format) before posting code in a code block.
One thing that I can tell you is that your method of receiving serial data is flawed. The serial input basics tutorial shows robust ways to send and receive serial data.