Problems with Serial communication

You need to show all your code. It isn't possible to see what the problem is from what you posted.