Im trying to learn input shift register to increase number of inputs for my Arduino. And in googling I found this schematic
I think its not for 74HC165, but I believe its almost same way for 165 also. But my concern or confusion is the resistors there. What is the purpose of those resistors there, which are connected to ground??