What is the purpose of measuring dissolved oxygen in power plants?

Dissolved oxygen is measured in boiler feed water for addition of dosing compounds to remove oxygen to avoid corrosion in steam boilers. In wastewater plants it is measured to estimate quality of effluent. (oxygen demand)