IC 74HC165 (SN74HC165N) - 8-bit Parallel-to-Serial Shift Register
Product information:
The SN74HC165N is a handy IC that allows you to read multiple digital signals using fewer pins on your microcontroller. Instead of using 8 separate inputs, you can use this chip to read 8 signals via a single data line.
For example, you connect buttons, switches, or sensors to the 8 inputs (A through H). With a few control pins (clock and load), you can then read out all states sequentially using an Arduino, ESP32, or Raspberry Pi.