Title: Soil fertility diagnosis and control for field, garden, and greenhouse soils