# Reto 7 Regar a distancia

##### <span style="color: rgb(22, 145, 121);">**Enunciado**</span>

Como controlamos a distancia la humedad, podemos decir si regar o no. Hacer un pulsador que por Internet se active el riego

##### <span style="color: rgb(22, 145, 121);">**Solución**</span>

Es muy fácil, en Smart IoT añadimos un interruptor

[![2026-09-29 21_10_00-Greenshot.png](https://libros.catedu.es/uploads/images/gallery/2026-09/scaled-1680-/2026-09-29-21-10-00-greenshot.png)](https://libros.catedu.es/uploads/images/gallery/2026-09/2026-09-29-21-10-00-greenshot.png)

Y en el programa añadimos esta instrucción, super fácil

[![2026-09-29 21_11_04-Greenshot.png](https://libros.catedu.es/uploads/images/gallery/2026-09/scaled-1680-/2026-09-29-21-11-04-greenshot.png)](https://libros.catedu.es/uploads/images/gallery/2026-09/2026-09-29-21-11-04-greenshot.png)

[https://makecode.microbit.org/S14732-94541-50997-91414](https://makecode.microbit.org/S14732-94541-50997-91414)

<div id="bkmrk--2" style="position: relative; height: 0; padding-bottom: 70%; overflow: hidden;"><iframe frameborder="0" sandbox="allow-popups allow-forms allow-scripts allow-same-origin" src="https://makecode.microbit.org/#pub:S14732-94541-50997-91414" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;"></iframe>

</div>