The idea was taken from this outdated plugin: WaterSensor (complete revision!)
Best explained by the animations...