My warranty deed for my property contains the following clause:

"The above-described premises may be located within the vicinity of farmland or a farm operation. Generally accepted agricultural and management practices which may generate noise, dust, odors, and other associated conditions may be used and are protected by the Michigan Right to Farm Act."

I believe this clause and the Right to Farm Act gives the farmer some legal footing. I hope I never have to test it, but inasmuch as I will be raising pigs this year, it's nice to know I have it just in case I'm challenged.