Humor actually changes brain chemistry. The chemical change is enhancing to learning.
Instructors need to be willing to laugh at themselves. We should never have humor at the expense of others.
Recognizing a situation presents an opportunity for situational humor is a great skill to develop. You will know if you have got it when everyone in the room--even the most serious ones--at least come out with a chuckle.