What is a Heat Engine?

Any engine that uses heat as energy to do work is a heat engine. A heat engine converts thermal energy into mechanical output, which is called work.