Nitrogen/ hydrogen detector