What device should be installed in a chilled water line to shut off the compressor if no chilled water is flowing?

What device should be installed in a chilled water line to shut off the compressor if no chilled water is flowing?