For the duration, you can read the thoughts of certain creatures. When you cast the spell and as your action on each turn until the spell ends, you can focus your mind on any one creature that you can see within 30 feet of you. If the creature you choose has an Intelligence of 3 or lower or does not speak any language, the creature is unaffected. You can also use this spell to detect the presence of thinking creatures you cannot see. When you cast the spell or as your action during the duration, you can search for thoughts within 30 feet of you. The spell can penetrate barriers, but 2 feet of rock, 2 inches of any metal other than lead, or a thin sheet of lead blocks you. You cannot detect a creature with an Intelligence of 3 or lower or one that does not speak any language. Once you detect the presence of a creature in this way, you can read its thoughts for the rest of the duration as described above, even if you cannot see it, but it must still be within range.