Detecting AC pump motor running (from the outside)
A Hall effect sensor should be able to pick up the varying magnetic field when mounted near the motor. This provides a low-voltage, isolated sensor. Amplify, rectify and threshold the output to provide the digital signal.