What does it mean when a dog wiggles his nose?

That he is smelling something usually.