Gas detector for multiple applications