WHAT?!? No, of course snakes are ok in the yard or the garden. They don’t just disappear because someone turns their habitat into a subdivision. Snakes don’t know about property titles or zoning. Non-poisonous snakes are harmless and beneficial in the garden. I’d rather have a beautiful snake slithering around my garden over those chipmunks digging up everything.
It’s when they are killing your poultry you have a problem. But for a human (the supposedly more intelligent being) to just kill the snake for being a snake doing snake things is just lazy and means one fewer snake hit man for gardeners like me.
SNAKES CAN LEARN! If you catch a snake and give it a very bad experience (shake it up in the pillow case) or leave it out in netting exposed to the world and then go dump it far away somewhere out in the bright wide open that snake could be so traumatized you won’t have to worry about it again and it will live another day to catch mice and chipmunks!
OP if there is a sudden explosion of particular snake populations, then you could be witnessing the phenomenon of
overshoot & collapse (once you reach the “food” section the article gets depressing quick). So if there is an explosion of snake species that have similar habitat requirements it’s an indication that conditions were right for population overshoot. Collapse may be in sight, but until then killing the snakes getting into your coop may be the best thing for you and the ecosystem.
If it’s just one or two snakes, dogs (or cats!) on the property could help. Then prevention via fencing and deterrents like clearings and sulphuric are important.