plantCO2integral = 0;
    private void doPlants() {        float overflow, new_overflow;        float cropacres;        GenericSensor harvestSensor;        GenericSensor currentSensor;        PlantingActuator currentActuator;        HarvestingActuator harvestActuator;        StoreOverflowSensor co2OverflowSensor, o2OverflowSensor;        currentActuator = PlantingActuatorHelper.narrow((myBioHolder                .getActuatorAttachedTo(myBioHolder.thePlantingActuators,                        myBiomassRS)));        harvestActuator = HarvestingActuatorHelper.narrow((myBioHolder                .getActuatorAttachedTo(myBioHolder.theHarvestingActuators,                        myBiomassRS)));        co2OverflowSensor = (StoreOverflowSensor) myBioHolder                .getSensorAttachedTo(myBioHolder.theStoreOverflowSensors,                        myCO2Store);        o2OverflowSensor = (StoreOverflowSensor) myBioHolder                .getSensorAttachedTo(myBioHolder.theStoreOverflowSensors,                        myO2Store);        int i;        int num = myBioHolder.theHarvestSensors.size();        for (i = 0; i < num; i++) {            currentSensor = (HarvestSensor) myBioHolder.theHarvestSensors                    .get(i);            currentActuator = (PlantingActuator) myBioHolder.thePlantingActuators                    .get(i);            if (currentSensor.getValue() == 1f) {                myLogger.info(" Harvest Sensor " + currentSensor.getValue());                myLogger.info(" CO2 Tank Overflow: "                        + co2OverflowSensor.getValue() + " O2 Tank Overflow: "                        + o2OverflowSensor.getValue());                myBiomassRS.getShelf(i).harvest();                cropacres = myBiomassRS.getShelf(i).getCropAreaTotal();                myLogger                        .debug("Planting "                                + cropacres                                + " m^2."                                + ((Shelf) myBiomassRS.getShelf(i))                                        .getCropTypeString());                currentActuator.setPlantType(myBiomassRS.getShelf(i)                        .getCropType());                currentActuator.setValue(cropacres);                plantCO2integral = 0;            }        }    }