Analysis of distance sensor in Lego Mindstorm