BTW, forgot to mention this, but I also keep my feed locked up on a barn, and almost never see mice or signs of them and have never seen a snake in the barn. But I also have 3 barn cats living in there. My daughter has a similar barn, has lots of mice and black snakes and NO cats. So a bunch of barn cats might be an option for you to consider if you have mice present that might be attracting your snake.
If like in my setting, the rodent abundance cycles such that all the predators combined cannot keep it suppressed at all times. What can complicate issues is the surroundings not directly in poultry use. Outside barn you can have food and cover allowing build up of rodents despite what barn provides. Over winter I a good number of white-footed mice with some house mice. As the seasons progressed the house mice replaced the white-footed. The house mice do seem more tied to feed spillage. A single young adult tom cat and at least a couple Coopers Hawks worked barn for the mice when weather was cool but now that growing season is well underway they have too many other targets for consumption to waste time in my barn.