What is this called

Yeah, it's a rotation sensor. The disk has slots or reflective lines. The device senses them, and so can be used to determine how much turning has happened.