Fluctuating voltage value in print console

Sorry, try to replace "int voltPin = A0;" with "#define voltPin A0".