Thanks ericmark
Do you know how to integrate that with any smart device? My intetion is not to turn on any pump, only to receive an alert on Alexa. The float swicth itself would be connected staright to the smart switch.
I was planning to use any smart switch with only to know the state is ON...
I bough a Float Switch that works with a floating on top of a liquid which opens or closes the electrical circuit as the liquid level rises or falls.
My idea was to use the ports S1 and S2 from the Sonoff Mini R4 to close the circuit and so I would be warned by Alexa the water level has gone...