The professor first started using facial recognition to take attendance, and now he uses it to see how his students are feeling.