Investigating an active cooling system powered by a thermoelectric generator