When nitrate and phosphate sensors meet