Issues with connecting a slideswitch to change between automatic and manual mode for a fan

But I connected the potentiometer on A1