Yes the 74hc595 you can use only as a serial to parallel expander. For inputs its good to use the I2c-Bus called also TwoWireBus
and the PCF8574. I think you will find some application and hints in the Internet. On this IC you can use the pins as well as inputs and outputs.
kitte ![]()