The present participle in this sentence is 'reading', but I believe it refers to, or modifies 'reminded', because it denotes the way the teacher reminded the students to pay attention. How did the teacher remind us to pay attention? By reading from Shakespeare.