So you might want to look at this How to get the best out of this forum before you proceed any further.
Also as your code doesn't seem to actually read the serial port, then
Is never going to change from its initial value of zero anyway. All global variables without a value in the declaration default to a value of zero.