I took apart an old music system that didnt work anymore and got a nice volume knob, or at least thats what it was used for, and I wanted to use it for a different project. At first I thought it was a potentiometer but it definetrly was not because it continuously spun, unlike a potentiometer, so I thought it was a rotary encoder. I found the pins for ground and the 2 outputs and I tried hooking it upto my Arduino to test it out. I hooked up exactly how I am supposed to and used multiple different example codes to test it out, but it wouldn't work. By that I mean in the serial monitor where it was supposed to output to, nothing was outputed. Though when I used THIS code and I hooked up all the pins, nothing displayed in the serial monitor, though when I disconnected the ground pin, it would start spamming numbers in the monitor. If anyone could help me try to figure this out and get it working that would be great. Below is a picture of the supposed rotary encoder.