Analog value problem

void mjerenje() // function for measuring batteries, diesel and water tank
{
  value = analogRead(A0); // Ignore this one.
  value = analogRead(A0); // The actual reading.
  value = (value * 18 / 1023); // value conversion for batteries

Do you mean litterally to write this code? I tried everything you suggested except metal film resistor because i don't have them at home... the same thing happens except I now have a bigger resolution because i used external AREF...when i started up the arduino, full was showing me around 60, after i moved VDO resistor few times now shows me 150 on full... now 80... it was showing 200 also for a minute on full... This is driving me crazy