Where would I need to put the resistors you are mentioning?
Between digital pins you are reading and ground.