Your dog sniffs because he wants to know your mood. It may be uncommon to humans, but this is a common practice amongst dogs. They smell and try to know your mood and your stress levels.