A hydrometer is used to measure the specific gravity of the wort before and after fermentation. It helps brewers calculate the alcohol content and monitor the progress of fermentation, ensuring the beer is fermenting properly and reaching the desired final gravity.