How to connect an encoder ky040 on XOD

how to connect an encoder and read from it. I found a couple of libraries but there is no information about them on the official website. help me please! (как подключить энкодер и считывать с него показания. Я нашёл пару библиотек но на официальном сайте нет про них никакой инфы. Помогите пожалуйста!!!)