This Library will simplify, connecting a rotary encoder hardware (With Push button-switch).
mainNo description
rotary-encoder-with-buttonNo description
To use the nodes in your project you should have the  age3only/rotary-encoder-with-button  library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.