This question already has an answer here:

How can Mad-eEye Moody perceive Harry Potter through the Cloak of Invisibility when Xenophilius Lovegood says

"endures eternally, giving constant and impenetrable concealment, no matter what spells are cast at it."?

marked as duplicate by Gallifreyan, RichS, ibid, Community Mar 1 '17 at 6:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.