The purpose of the AC pressure switch is to act as a safety mechanism. If it notices the refrigerant pressure getting too high or too low it will shut off the compressor to avoid damaging it.
The best way to locate the pressure switch is to follow the AC lines. The low-pressure switch will be on the larger line, while the high-pressure switch will be on the smaller line. The location can vary between cars. Here are some common locations of the AC pressure switch: