A crop sensor includes: a housing sized and shaped to correspond to a foodstuff of a crop; a sensor to sense a physiochemical parameter relative to growth of the crop; and an energy-harvesting unit to generate electrical energy for the sensor from movement of the housing.