Easy with basic hardware.
If a pressure system then a pressure switch that activates at lower pressure than system.
So active when pressure present.
Connect to coil of a relay and use relay NC connection so when relay idle you get connection.
More detail...the C terminal on relay connects...