How can the density of a liquid be determined using a hydrometer?

A hydrometer is placed in the liquid, and the level at which it floats indicates the liquid’s density, based on buoyancy principles.