Scientists are working to develop devices that can harness waste heat from buildings and industrial uses to produce energy.