Another option is to monitor the torque of the motor. When the pump runs dry, the torque will reach alarm level and can be stopped. The great advantage is that you put this equipment in the motor control cabinet, so it will not be affected by a hostile environment.