If you are able to get that sensor in your drain… (lift the lid and see if there is space)
The aqara water sensor does allow you to connect wires.
Run the wires to just above the waterlevel.
That waterlevel will rise when you start showering and will lower when you stop.