Among the gases you mentioned, hydrogen sulfide (H2S) is heavier than air.
Hydrogen sulfide is a colorless gas with a characteristic rotten egg odor. It is denser than air, which means it has a higher molecular weight and tends to settle towards the ground rather than dispersing into the atmosphere. This property of being denser than air makes hydrogen sulfide tend to accumulate in low-lying areas such as basements, pits, and confined spaces.
On the other hand, both nitrogen (N2) and hydrogen (H2) are lighter than air. Nitrogen, which makes up the majority of Earth's atmosphere, has a molecular weight similar to that of air, while hydrogen is the lightest gas and tends to rise rapidly in the atmosphere.
It's important to note that hydrogen sulfide is toxic and highly hazardous in high concentrations. Exposure to hydrogen sulfide gas should be avoided, and appropriate safety measures should be followed in environments where it may be present.