The pressure switch activates when the fluid pressure exceeds or falls below the preset threshold. In adjustable pressure switches, the activation value can be set manually, while in electronic pressure switches, the threshold can be configured digitally. The activation of the pressure switch can turn a device on or off, such as a pump or a compressor, to keep the pressure within safe limits and ensure the proper operation of the system.