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

I made a digitalRead(switchA); nothing changed