Pressure switches can be mechanical or electronic, and are activated when water pressure reaches a set point.
Pressure Switch Adjustable 5 Bar
Pressure Switch Adjustable 12 Bar