Sodium nitrite is primarily used as a corrosion inhibitor in closed cooling systems, such as in industrial boilers and chillers. It helps to prevent the formation of rust and scale deposits on metal surfaces. It is typically added directly to the system water.