Detecting gas molecules via atomic magnetization.