Determining specific gravity of a liquid by using hydrometer