It works by extracting heat from the environment (air or ground), compressing it to increase its temperature, and then transferring that heat to water in a storage tank.