Fault-free detection of boats in water-locks. Specifically adapted algorithm to ensure/guarantee detection of boat presence in water-locks. Avoid accidents with remotely operated water-locks. Challenging circumstances due to turmoil, waves, foam and dirt.