<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="transmit" id="T0W3iq`uFXyXD-%6)PT0" x="60" y="42">
    <value name="for_print">
      <block type="text" id=")?%7U8m3$7u#-2:4pFQ$">
        <field name="TEXT">It's dark</field>
      </block>
    </value>
    <next>
      <block type="set_color" id="/[rT@B4:X!8t^yj^hHPI">
        <field name="color_option">'red'</field>
        <next>
          <block type="controls_whileUntil" id="z0UFWyD~7ZT{@FnxDu6s">
            <field name="MODE">WHILE</field>
            <value name="BOOL">
              <block type="check_for_dark" id="4ju~n/$au|DTnx:[QA}L"></block>
            </value>
            <statement name="DO">
              <block type="turn_right" id="=!1?{NiM6a%6LutZW%C["></block>
            </statement>
            <next>
              <block type="transmit" id="FQlOg4N`LBOKpB~4,fXE">
                <value name="for_print">
                  <block type="text" id="D2-rxNecj}co?YwmIu@A">
                    <field name="TEXT">Light detected.</field>
                  </block>
                </value>
                <next>
                  <block type="set_color" id="8w0R8K{eIW(Bim2N8R.7">
                    <field name="color_option">'green'</field>
                    <next>
                      <block type="controls_whileUntil" id="Z=`ix3#30}H`5$~[1*5@">
                        <field name="MODE">UNTIL</field>
                        <value name="BOOL">
                          <block type="check_for_dark" id="=,31Jh]?`mj`M/g@I1Mg"></block>
                        </value>
                        <statement name="DO">
                          <block type="turn_right" id="iy-IpNtVJj.`1q1q8J`-"></block>
                        </statement>
                        <next>
                          <block type="transmit" id="=dpK`*ohao7F(TrF[-hw">
                            <value name="for_print">
                              <block type="text" id="c)(Q[Q9wo|v6l4B6DtT~">
                                <field name="TEXT">Darkness again.</field>
                              </block>
                            </value>
                            <next>
                              <block type="set_color" id="#G6[Xc:F!UQ#ndJh8Yyu">
                                <field name="color_option">'red'</field>
                                <next>
                                  <block type="controls_repeat_ext" id="7Z*9zLMvdP.]~dv0fzO3">
                                    <value name="TIMES">
                                      <shadow type="math_number" id="+bauS03XJ*KnzIH*X)[v">
                                        <field name="NUM">10</field>
                                      </shadow>
                                    </value>
                                    <statement name="DO">
                                      <block type="turn_right" id="EraMU,6LA7!4p(g~:1bY"></block>
                                    </statement>
                                    <next>
                                      <block type="controls_whileUntil" id="`D61{nV]H,w_rB~dQxj]">
                                        <field name="MODE">WHILE</field>
                                        <value name="BOOL">
                                          <block type="check_for_dark" id="@UL8=rro-Uc/7[@hT`3D"></block>
                                        </value>
                                        <statement name="DO">
                                          <block type="turn_left" id=":(7!Km+L6x/F+9Ki;o3y"></block>
                                        </statement>
                                        <next>
                                          <block type="transmit" id="WvMgm98Gcz,.Ac}iW%d.">
                                            <value name="for_print">
                                              <block type="text" id="sN7!=G2D+^d*ZU~N8H8r">
                                                <field name="TEXT">Light detected again.</field>
                                              </block>
                                            </value>
                                            <next>
                                              <block type="set_color" id="C}6d{e^+y/|mSp4]RezR">
                                                <field name="color_option">'green'</field>
                                                <next>
                                                  <block type="controls_whileUntil" id=",no8@YcC+{4aL_)x?8ew">
                                                    <field name="MODE">UNTIL</field>
                                                    <value name="BOOL">
                                                      <block type="check_for_dark" id="Dx7){I?LiHuY,qy(uctb"></block>
                                                    </value>
                                                    <statement name="DO">
                                                      <block type="turn_left" id="X:g54fDMB!Zo9xT@L1*$"></block>
                                                    </statement>
                                                  </block>
                                                </next>
                                              </block>
                                            </next>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </next>
                              </block>
                            </next>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </next>
              </block>
            </next>
          </block>
        </next>
      </block>
    </next>
  </block>
  <project>
    <title>Light control with light sensor</title>
    <description>Light control with light sensor</description>
  </project>
</xml>