You could do it with a pressure switch and relying on a fixed orifice so you get pressure to trigger the switch, but that has two problems.Would it need such sophistication? Something as simple as an equivalent to the oil pressure switch on a car engine that illuminates a loud buzzer (or shotgun cartridge bird scarer) when the pressure drops would be enough.
The big one being it's not failsafe. If the flows gets blocked, you'll still have pressure. The other is any added restriction will add to heating the water.
By measuring the actual water flow, pressure doesn't matter, and you know there is water flowing.