Farmers use the property of density of cranberries to harvest the crop because an object with a density less than, in this case, water, it will float.
When farmers flood cranberry bogs with water, they know that cranberries have a density less than about 1 g/mL. Because of this, cranberries will float to the top of water and can be easily harvested.