Integration of an atmospheric water harvester (AWH) with hydrovoltaic (HV) technology poking a new technology and notification to the arid region people to harvest freshwater and electricity simultaneously from the humid atmosphere even in the non-water region. In this work, we have fabricated a composite material by attaching the sulfonic groups to the graphitic oxide substrate (SGhO) through a one-step reflux method. The material delivers an excellent water absorbing ability of 0.3 g g−1h−1and 2 g g−1in 19 h under a 40–60 % humid environment. The electrical experiments show during moisture absorption, a specific voltage and current are generated indicating the dissociation of sulfonic groups in the graphitic structure creates a drift movement of H+ions through the composite. Our device delivers a voltage of 0.25 V and a high current of 160 µA from a single device during moisture movements through the structure under the relative humidity of 60–65 %. The rapid enhancement of the interfacial temperature from 31 °C to 44 °C within a minute due to the presence of graphitic oxide shows excellent photothermal capacity for the light-induced evaporation mechanism and collecting the condensed water as freshwater. The composite can evaporate all absorbed water within 0.5 h in one sun illumination (1 kW/m2) under the ambient relative humidity (RH) of 40–60 %. Several trials of washing treatments were done to ensure the chemical bonding of sulfonic groups into the graphitic structure. Therefore, it was confirmed the excellent stability, and repeatability for repeatable practical applications. Furthermore, the purity of the collected water is conducted with various analyses such as pH, TDS, and UV–Vis absorption studies and confirmed the excellent purified water which highly meets the global drinking water standards. Therefore, this work demonstrates a single way to achieve dual goals such as water harvesting as well as power generation for a better tomorrow.