GPIO Pins to control volume

For a rotary encoder use this one.
Myself I’ll use rotary encoder type KY-40.