Voltage level indicator using arduino

hi, i am working on a project which needs battery power monitoring, I know that i can do that using "analogread" function of arduino but i want to check the power of the same battery which is powering the arduino itself. I mean, the same reference voltage is draining while its powering the mcu so the result will be always same. Can anyone help me here please?

You need a voltage reference. For instance the 1.1V internal reference on the ADC.

look for "analogReference (INTERNAL)"

thanks mate, i didn't even know what the AREF pin for. now i will be ok. thanks again