Testing the laser sensor