This story originally appeared on Grist and is part of the Climate Desk collaboration.

The Kominek family farm is a green expanse of hay and alfalfa in northern Colorado. The family has planted and raked crops for half a century, but as yields declined over recent years, the farm began losing money. In late 2017, Byron Kominek went looking for more profitable alternatives, including installing solar panels and selling electricity to the utility. But Boulder County’s land-use codes made it difficult to use their 24 acres for anything but farming.

So the Komineks found a compromise: a solar array with plants growing beneath, between, and around rows of photovoltaic panels.

Construction is slated to begin this spring on a 1.2-megawatt solar array on the Kominek farm. Some 3,300 solar panels will rest on 6-foot and 8-foot-high stilts, providing shade for crops like tomatoes, peppers, kale, and beans on a five-acre plot. Pasture grasses and beehive boxes are planned for the perimeter.

“Now there will be potentially more food grown in the community, more renewable energy, and more revenue to local farms,” said Kominek, 37, whose late grandfather Jack bought the farm in 1972.

If successful, the project could serve as a model for other cash-strapped farmers, by transforming underperforming fields into potentially money-making hubs of clean energy and fresh food.

Xcel Energy, the state’s biggest utility, has agreed to pay for each kilowatt-hour delivered from the Kominek’s solar array to the grid. Their neighbors can buy into the project, too. Participants invest in a percentage of the array, then receive credits on their monthly utility bills. Their investment also helps defray some of the farmers’ upfront construction costs.

The vegetables will be sold through a community farm-share program, which allows neighbors to invest in the project in exchange for boxes of produce.

This marriage of agriculture and solar photovoltaics — known by the awkward name “agrivoltaics” — is an emerging niche within the broader solar power industry.

In the United States, less than 5 megawatts’ worth of solar arrays have crops planted beneath them, according to the National Renewable Energy Laboratory, or NREL. That’s barely a speck of the country’s 71,300 megawatts of installed solar capacity. The farm-plus-solar sector is relatively bigger in Japan, where the concept first emerged over a decade ago. Hundreds of projects now exist, including a 35-megawatt solar array that hovers over fields of ginseng, herbs, and coriander.

Proponents say that this approach could allow for widespread renewable energy development without displacing much-needed land for food. Recent studies suggest that it could lead to more efficient energy and crop production by creating a cooler, moister microclimate.

In a recent test in Arizona, scientists compared crops planted under solar panels with those grown in direct sunlight. They found that total fruit production for red chiltepin peppers was three times higher on the plots under the panels, and cherry tomatoes doubled production. Some of these plants used significantly less irrigation water, in part because the shaded soil retained more moisture. Solar panels placed with plants were also substantially cooler during the day — and therefore operated more efficiently — than the usual ground-mounted arrays, according to the study last year by NREL and the Universities of Arizona and Maryland.

A project in South Deerfield, Massachusetts, delivered similarly promising results. Early field tests showed that Swiss chard, broccoli, and similar vegetables produced about 60 percent more volume compared to plants beneath a full sun.

Kominek’s project, called Jack’s Solar Garden, will provide more opportunities to study agrivoltaics. NREL, in nearby Golden, Colorado, plans to track how plants and panels perform together in Boulder County’s hot, dry climate. “If the structures help keep in moisture, and we have less evaporation, we’ll need less water to grow the same amount or even more [crops],” said Jordan Macknick, the lead energy-water-land analyst for NREL.