On extended bicycle trips I sometimes slept under a plastic sheet, which helped with mosquitoes on hot nights. But there was a noticeable build-up of ammonia which made this almost impossible for more than an hour or so at a time.
Air is mostly nitrogen $(N_2)$ and there is always water (containing hydrogen) on a humid day. But I wonder about the mechanism for the formation of ammonia under these circumstances? There are (according to Wiki) trace amounts of methane and $H_2$ in the air. But methane and hydrogen (g) are I think pretty stable.
I wonder if the presence of exhaled air (containing $CO_2)$ could be a factor?
Thanks for any ideas.