How To detection of explosives materials ....?

They look for nitrogen (nitrogen compounds).