Nitrate sensor and wire length