Help with wiring in encoders

This setup can help as a reference here.