Infrarot funktioniert gut:

https://www.roboternetz.de/community...bstandsmessung