**4. Conclusions**

The use of desalinated water for agricultural irrigation increased the productivity of sorghum and tomatillo (*Physalis philadelphica*) crops. This means that wells with high salinity in the region can be utilized for irrigation through the use of desalination systems. In this sense, public and private investments in desalination in the rural sector are viable in the short term.

Cations and anions from the well water were successfully removed by the use of SWC4 membranes in an RO system. The operating parameters of the desalination process, such as pressure drop through the membrane modules, multimedia filter and cartridge filters, were below the limits and within the correct operating standards, which ensured a flow rate of 1.5–1.7 L/s of permeate, as well as a high rejection above 92%.

The total cost of producing the desalinated water was 0.338 USD \$/m<sup>3</sup> . The cost of using electrical energy to operate the high pressure pump represented 70% of the total cost. Clearly, desalination processes need to incorporate renewable energy generation processes to reduce their environmental impact. In this energetic context, it is concluded that vegetables such as tomatillo have a higher profit in the market, compared to the sale of grains such as sorghum. This research project and other authors reaffirm that for the economic viability of desalination applied to agriculture, there must be a coupling of desalinated water using irrigation tapes for crops of high commercial value, with renewable energy such as solar photovoltaic.

The performance of the *Physalis philadelphica* and Sorghum are greatly improved by using tapes and sensory equipment, to apply irrigation as required and to decrease the concentration of salts in the irrigation water. It is concluded that the objective of the project has been satisfactorily achieved. Finally, it is concluded that with the use of desalination, producers will not need to worry about planting crops that support or tolerate the concentration of salts from their wells, since they will be able to establish high yield and high commercial value crops. Notably, the cost of production is a success factor in places where desalination is applied, such as agriculture and others. It is also necessary to continue investigating the incorporation of electric energy from renewable sources.
