The device used to measure the relative density of a liquid is known as:
Hydrometer
A hydrometer is an instrument used to measure the relative density of liquids. It is usually made of glass and consists of a cylindrical stem and a bulb weighted with mercury or lead shot to make it float upright.