To train your pet to remain calm amidst a neighbor's dog barking, teach your pet to associate the noise with positive experiences. Use treats or favorite toys when the barking starts, reinforcing calm behavior.