Model of the distance sensor used in lab1