Air goes in, and air goes out
When you sniff, you pull air in and push it back out the same way. Dogs do something different. When a dog breathes in, air splits into two paths. Some goes toward the lungs. Some goes into a pocket at the back of the nose lined with scent cells.
When the dog breathes out, air leaves through slits on the sides of the nostrils, not straight forward. Researchers who studied this found that the exhale swirls away from the sniffing area, and may even help pull new air in. In plain words, the nose does not blow away the smell it is trying to read.
Dogs also sniff in short, fast bursts. A working dog may sniff several times a second. This brings in a stream of fresh odor to sample. If you watch a dog work, you can hear it.
This is why a dog can sniff continuously. People have to stop and breathe. Dogs keep reading while they breathe.