Dann sind Abstandssensoren (Infrarot oder Ultraschall) wohl definitiv die bessere Lösung für dich.