I guess https://www.nxp.com/docs/en/data-sheet/PCF8574_PCF8574A.pdf should explain all you want to know.
Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advise on) your project
See About the Installation & Troubleshooting category.