Locate the participle and the word it modifies.
Reading from Shakespeare, the teacher reminded us to pay attention
Reading from Shakespeare, the teacher reminded us to pay attention