Printing the value only once to Serial Monitor