It shall be unlawful for the owner, handler, custodian or keeper of any dog or cat to allow any of the following nuisances:
B.
Maintenance of the dog pen or area in which the dog is kept in an unsanitary condition with offensive, obnoxious or foul odors.
C.
Barking, howling, yelping or otherwise making noise continuously in excess of 15 minutes or intermittently in excess of 30 minutes so that such barking can be heard by persons outside of the property of the owner, handler, custodian or keeper of the dog; provided, however, that noise from a dog due to someone threatening to or trespassing upon the property upon which the dog is located or caused by teasing or mistreatment of the dog by someone other than the owner, handler, custodian or keeper of the dog shall not be considered a violation of this section.