Valve is a device for controlling the movement of liquid or air through a pipe or duct. In internal combustion engines valves are used to control the flow of fuel and gases, in and out of the cylinders.