Hi! The function digitaRead() in your library has problem like SkyWodd's library it doesn't work. https://github.com/skywodd/pcf8574_arduino_library/issues/12  The function returns always 0. Best regards.