Second value of Serial.println() is always 0

What have you got Line ending set to in the Serial monitor ?

Please follow the advice given in the link below when posting code . Use code tags when posting code here to make it easier to read and copy for examination