Vs ---- resistor ----- switch ---- output | GND