Whenever the commission finds that a violation did not cause harm to human health or an adverse effect on the environment, the commission may issue a warning in lieu of assessing a penalty where the owner or operator, upon notice, takes immediate action to resolve the violation and come into compliance. If the commission finds the nutrient pollution or the danger of nutrient pollution or the negative impacts from odor associated with new or expanded facilities results from conditions, activities or practices which are being or have been implemented in accordance with a nutrient management plan or odor management plan developed and approved pursuant to and consistent with this chapter and the regulations developed under this chapter and which is being or has been fully implemented and maintained, the owner or operator of the agricultural operation shall be exempt from the imposition of penalties under this chapter.
3 Pa.C.S. § 514