Wilson Logan <- This code works great. Do you have any idea how to connect two encoders? I tried different functions, but when both are connected, the result is always zero, I just need to disconnect the power supply from one and the other starts reading data. I use arduino nano.