State law does not override a county or municipality's rights to create ordinances in regard to regulation and enforcement of any laws in so much as they are not immediately and clearly addressed within the state statute in question.
In short, unless your state statute says something similar to "No county, city, or village may create ordinances designed to inspect growing operations" then it is perfectly legal for the local government body to pass this legislation. Even if it weren't legal, it would require a legal battle and quite a bit of funds to go up against a team of municipal or county attorneys and fight the bill as an infringement on right provided by a specific statute.
Now that that's out of the way, you asked how you can stop if from happening. This depends largely on who is proposing this ordinance and what their arguments in favor of it might be. This also depends upon your ability to organize and have a public outcry at your next council meeting (or committee meeting). I'm going to suppose that your city government has two standing committees that propose and vote on legislation before moving it forward for consideration by the entire council. Was this ordinance mentioned for the first time at the meeting you recently attended, or is it already slated for a vote in the near future (like next week?)?
You have some options, but the best thing you can do is pack part of the council chambers with local people (those who live in your city or county) in opposition. You'll need to have them sign up to speak or at least register with the city clerk as "opposed" to the ordinance. You'll need to be polite and lay out an sensible reason for your opposition, and you'll need to structure the opposition speaking time in such a way as that no one repeats what someone else said already. PM me if you want some help with this, but basically, you need to organize, you need to show up, and you need to state your case. If you're short on time, write a letter to the editor tonight and have other people write letters every few days until the vote comes up.
I can't create your arguments for you, so brainstorm with a few people, and PM me with what your arguments against inspection might be. I can help tweak them for you.