Nanoscale sensors in agriculture that detect soil moisture and nutrient levels optimizing irrigation and fertilization