AYER -- Vitasoy USA Inc., a soybean processing company, has been ordered by the Massachusetts Department of Environmental Protection to pay a $10,995 penalty and install a wastewater pretreatment system at its Ayer manufacturing plant.

The system will allow Vitasoy to get into compliance with the DEP's air-pollution and wastewater regulations.

The DEP said in a press release that the pretreatment system and fine are part of a consent order, agreed upon after state and local officials received and verified numerous complaints of odors coming from Vitasoy's plant at 1 New England Way.

According to the DEP, the odor was most often caused by the existing industrial wastewater pretreatment system, which was overloaded.

The company was also discharging industrial wastewater to the Ayer sewage treatment plan beyond the limits set by treatment plant officials.

"This company tried many things to attain compliance, but an upgraded pretreatment system is needed," said Lee Dillard Adams, director of the DEP's Central Regional Office in Worcester, in the release. "It is the intent of this action that Vitasoy's operations will no longer create nuisance odors in the surrounding neighborhood."