How does an oil pressure switch work?

An oil pressure switch works by detecting the pressure of the oil in the car and alerting you to any problems. Oil pressure naturally increases when a car is running, but if the pressure gets too high or drops, it can create numerous problems.