Pressure sensor alarms function by continuously measuring pressure levels and comparing them to preset thresholds. When the pressure exceeds or falls below these limits, the alarm is triggered, alerting healthcare providers to take necessary actions.