<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="controls_whileUntil" id=":D^J3rZk?k}]`k$VvEus" x="228" y="43">
    <field name="MODE">WHILE</field>
    <value name="BOOL">
      <block type="logic_boolean" id="Oksu254[myFry$UaFu5i">
        <field name="BOOL">TRUE</field>
      </block>
    </value>
    <statement name="DO">
      <block type="controls_if" id="0/,NnQn)GS)G?fMEHg$j">
        <mutation else="1"></mutation>
        <value name="IF0">
          <block type="logic_compare" id="^.rc~3GEU[O@5qh-2^(*">
            <field name="OP">GTE</field>
            <value name="A">
              <block type="math_number" id=":7?!Uk)e0ha/rd=Vx;:T">
                <field name="NUM">5</field>
              </block>
            </value>
            <value name="B">
              <block type="distance" id="+ZG9lr9RH!iXvIn)!LP7"></block>
            </value>
          </block>
        </value>
        <statement name="DO0">
          <block type="transmit" id="7TvKbh`:LN(L?@;=QKw;">
            <value name="for_print">
              <block type="text_join" id="mC]lYeqof,Pqv|8P3q|C">
                <mutation items="3"></mutation>
                <value name="ADD0">
                  <block type="text" id="}z%piJ;~C3[,t0*MgWw7">
                    <field name="TEXT">Obstacle detected at</field>
                  </block>
                </value>
                <value name="ADD1">
                  <block type="distance" id="yRm:CNTk-(r6[}A:^g]E"></block>
                </value>
                <value name="ADD2">
                  <block type="text" id="Mxd$KA]h^v/0BMmuPn06">
                    <field name="TEXT"> cm</field>
                  </block>
                </value>
              </block>
            </value>
            <next>
              <block type="turn_right_90" id="3-=N_p4Y(te^SuzHL4W7"></block>
            </next>
          </block>
        </statement>
        <statement name="ELSE">
          <block type="move_forward_default" id="bmroEgDJr|x{_|s*/Dd6"></block>
        </statement>
      </block>
    </statement>
  </block>
  <project>
    <title>Obstacle detection</title>
    <description>Create a forward movement to park the robot while avoiding a collision</description>
  </project>
</xml>