Potentiometer to control lights

I went through pretty much the same thing. Use the rotary encoder…