Soil Fertility Sensor

have a sensor on a combine to determine fertility of soil during harvest to better time fertilizer applications
Could be an existing sensor could work, but would it as a combine unit? Too much residue, too much static from harvesting operations.