A solenoi valve is an electromechanical valve for use with liquid or gas controlled by running or stopping an electrical current through a solenoid, which is a coil of wire, thus changing the state of the valve. The operation of a solenoid valve is similar to that of a light switch, but typically controls the flow of air or water, whereas a light switch typically controls the flow of electricity. Solenoid valves may have two or more ports: in the case of a two-port valve the flow is switched on or off; in the case of a three-port valve, the outflow is switched between the two outlet ports. Multiple solenoid valves can be placed together on a manifold