Question: what are the necessary conditions for hydrogen?
Answer: The molecule must contain a highly electronegative atom linked to the hydrogen atom. The higher the electronegativity more is the polarization of the molecule.
The size of the electronegative atom should be small. The smaller the size, the greater is the electrostatic attraction.