In order to be able to work on a perpetual motion machine of the second kind, you have to pathetically wriggle in the following way (otherwise fierce thermodynamicists may mercilessly destroy your career):
Physicists Build Circuit That Generates Clean, Limitless Power From Graphene "A team of University of Arkansas physicists has successfully developed a circuit capable of capturing graphene's thermal motion and converting it into an electrical current. “An energy-harvesting circuit based on graphene could be incorporated into a chip to provide clean, limitless, low-voltage power for small devices or sensors,” said Paul Thibado, professor of physics and lead researcher in the discovery...Though the thermal environment is performing work on the load resistor, the graphene and circuit are at the same temperature and heat does not flow between the two. That’s an important distinction, said Thibado, because a temperature difference between the graphene and circuit, in a circuit producing power, would contradict the second law of thermodynamics. “This means that the second law of thermodynamics is not violated, nor is there any need to argue that ‘Maxwell’s Demon’ is separating hot and cold electrons,” Thibado said."
https://news.uark.edu/articles/54830/physicists-build-circuit-that-generates-clean-limitless-power-from-graphene
Paul Thibado Jan 22 2022, SSE Special Session, Advanced Propulsion & Energy IV
https://youtu.be/cFO32QWJe1c?t=2106
"Where does the stored capacitor energy come from? Work is done by thermal surroundings.
Is useful work done at a single temperature? Yes, everything is at the same temperature, T (isothermal process).
Does our system violate the second law of thermodynamics? No.
Is entropy produced? Yes."
Pentcho Valev
https://twitter.com/pentcho_valev