N sensor provides environmental and economic benefits