Courts recognize that people have a legitimate expectation of privacy in their homes and nearby outbuildings. To search them, police must have a warrant, or a valid exception to the warrant requirement must apply.
But what about more distant barns and other structures--do they deserve the same amount of Constitutional protection? The Supreme Court has stated that four factors are involved in answering whether the area is so "intimiately tied to the home" that it deserves Fourth Amendment protection: How close is the home to the area claimed to be private? A shed a few feet from the back door might qualify; a barn that's sixty yards away might not. For more information, see Exceptions to the Warrant Requirement