I'm trying that but its super flaky. It'll read the input correctly a few times and then stop. But if I touch the rotary switch it'll then read it again.
Interestingly if I touch or even put my hand near the ground wire or input wires, it then reads it correctly again.
Is that a debounce issue?