The idea is to help cut down on truancy. But the sensors can also detect if the student is falling asleep.