Optical Encoder Button Problem

First time posting, please let me know if I miss anything.

Optical Encoder Datasheet
I am using a CTS series 291 optical encoder for a project, I have attached the datasheet above this. The exact model I am using is the 291P1022 FX24ABB. So far I have hooked it up to my arduino board and keep track of the position, but I am not able to get the push button to work. The push button is connected with 2 pins instead of one like the other encoders I have used and I can not figure out how to use it. Any help would be appreciated, thank you.

It's just the two sides of the switch.

Wire one to ground.
The other to your input pin.

const byte thePin = 3;    // switch on digital input 3

Be sure to

pinMode(thePin, INPUT_PULLUP);

When you press the button, digitalRead() will show LOW.

HTH

Oh - Welcome to the community!

a7

Thank you so much for the help, that fixed the problem!