This paper presents a robust algorithm aimed at optimizing the application of pinch analysis in heat integration processes. It provides a sequential workflow with built-in check gates to ensure adherence to pinch rules, enhance design integrity, and maximize energy recovery. The algorithm aims to assist designers and optimization engineers by minimizing application hurdles while facilitating the development of new tools for heat exchanger network design.