how to wire a hall effect sensor

A hall effect sensor to measure, in this case, the water from rain in a rain gauge, triggered by an small magnetic piece.