Hydrogen in the upper atmosphere