Khangezile Primary is a no-fee paying school and feeds learners twice a day, at breakfast and lunch time.
The feeding programme is subsidised by the Gauteng Department of Education.
Volunteers cook meals for learners using biogas, thanks to renewable energy technology installed as part of the Sustainable Energy and Livelihoods project.
This initiative is run by Earthlife Africa, an environmental justice organisation based in Johannesburg.
Funds for the project were sponsored by the European Union and Oxfam.
Earthlife Africa said the project is a grass roots women initiative aimed at encouraging the sustainable use of natural resources to improve the resilience to climate change in South Africa.
Four schools have been chosen as part of the project.
Khangezile has also been equipped with solar panels.
This has allowed the school to go almost completely entirely off the grid.
The biogas process starts with food waste, which is broken down into smaller particles and fed through a pipe into a tank.
BiogasSA sell a do-it-yourself biobag digester kit. It recently added the DIY Biobag Digester Kit to its product range. It can be used in rural areas, schools with feeding schemes or other community projects and costs between R12,500 and R42,000 per kit.