Diaphragm works by flexing up or down in response to pressure or mechanical force. This motion either opens/closes a flow path (in valves), displaces fluid (in pumps), or transmits pressure (in instruments) while isolating the media from moving components.