The sheriff definitely had the right to search the farm field, and possibly had the right to search in sheds without a warrant. I’m not a lawyer, but there is a Supreme Court case that defines what is and isn’t protected on someone’s property, the result of the case is the open fields doctrine. [0] Open fields are not protected by the 4th amendment, the shed may or may not have been protected.
This is related to the common law concept of ‘curtilage’. [1]