No owner or keeper of an animal shall allow an animal to annoy or disturb any person not on the premises of the owner or keeper of the animal by unreasonable barking or other noises. For the purpose of this section, unreasonable barking or other noises shall mean barks, bays, cries, howls, or other noises that are continuous or incessant for a period of 30 minutes or are intermittent for a period of one hour or more. Barking or noises shall not be considered unreasonable if the animal is responding to a trespass or attempted trespass on private property. This section shall have no application to noises or disturbances made by livestock, poultry, or other animals emanating from a legitimate farming operation on property zoned for agricultural use.