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

Thank you so much, But the potentiometer mode is not working