why edx cannot detect hydrogen?
The reason is very simple. EDX is related to the K-shells which are not the valence shell. H does not have a K shell, or , better to say, it has only a K shell in convalent bonding and this only electron is shared.