{"id":60,"date":"2018-05-02T16:57:00","date_gmt":"2018-05-02T16:57:00","guid":{"rendered":"https:\/\/blogs.etsii.urjc.es\/dseytr\/?p=60"},"modified":"2019-05-04T17:56:00","modified_gmt":"2019-05-04T17:56:00","slug":"dispositivo-medidor-de-temperatura-y","status":"publish","type":"post","link":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/","title":{"rendered":"Dispositivo Medidor De Temperatura y Humedad"},"content":{"rendered":"<div style=\"background-color: white;\">\n<span style=\"background-color: transparent;\"><br \/><\/span><\/div>\n<h2 style=\"background-color: white;\">\n<span style=\"background-color: transparent;\"><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/span><span style=\"background-color: transparent;\"><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><u>Dispositivo medidor de temperatura y humedad<\/u><\/span><\/span><\/h2>\n<div style=\"background-color: white;\">\n<span style=\"background-color: transparent;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"background-color: transparent;\"><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"background-color: transparent;\"><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><span style=\"background-color: transparent;\">Proyecto realizado por<\/span><b style=\"background-color: transparent;\"> Ariana Gonz\u00e1lez Garz\u00f3n,&nbsp; Alejandro Ram\u00edrez Prieto <\/b><span style=\"background-color: transparent;\">y<\/span><b style=\"background-color: transparent;\"> Carlos Rodrigo Rivero.<\/b><\/span><\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<div>\n\/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;*<\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<h2>\n<span style=\"font-size: x-large;\"><br \/><span style=\"color: #134f5c; font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u00cdndice:<\/span><\/span><\/h2>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">1 &#8211;&nbsp; Introducci\u00f3n.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">2 &#8211;&nbsp; Materiales usados.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">3 &#8211;&nbsp; Funcionamiento<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">4 &#8211;&nbsp; Montaje del hardware.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">5 &#8211;&nbsp; Software.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">6 &#8211;&nbsp; Problemas encontrados.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">7 &#8211;&nbsp; Posibles mejoras.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><br \/><\/span><\/div>\n<div>\n<\/div>\n<div>\n*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-*<\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<div>\n<\/div>\n<p><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b>1 &#8211;&nbsp; Introducci\u00f3n.<\/b><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><br \/>\n<\/p>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Nuestra pr\u00e1ctica consiste en un dispositivo que medir\u00e1 la temperatura y&nbsp; humedad y las notificar\u00e1 mediante una pantalla LCD.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Con el fin de llevar a cabo un recopilatorio con los diferentes pares temperatura-humedad los guardaremos en una especie de &#8216;base de datos online&#8217;. Posteriormente este recopilatorio nos servir\u00e1 para realizar una comparativa entre los diferentes valores a lo largo del a\u00f1o.<\/span><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<b><span style=\"background-color: transparent; font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">2 &#8211;&nbsp; Materiales usados.<\/span>&nbsp;<\/b><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Placa Arduino Uno (proporcionado por el profesor).<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Modulo pantalla LCD 16&#215;2 + interfaz I2C = 7,19 \u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Soldadura pantalla LCD = 5&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Ethernet Shield w5100 = 12,09&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Placa board ZY = 6,85&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; DHT22 sensor = 7,44&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Cable 10 metros = 2,5&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Cables hembra = 1&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\u20ac<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><b><u>Presupuesto total : 42,07&nbsp;<\/u><\/b><\/span><b style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\">\u20ac<\/b><b style=\"font-family: &quot;Courier New&quot;, Courier, monospace;\"><u>&nbsp;<\/u><\/b><\/div>\n<div style=\"background-color: white;\">\n<b><br \/><\/b><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b>3 &#8211;&nbsp; Funcionamiento.<\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<b><span style=\"font-size: large;\"><br \/><\/span><\/b><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Al comenzar el programa el sensor de temperatura y humedad DHT22 env\u00eda la temperatura y humedad que detecta en el ambiente&nbsp; y la guarda en las variables &#8216;<b>temp<\/b>&#8216; y &#8216;<b>hum<\/b>&#8216; respectivamente.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Estos valores ser\u00e1n ense\u00f1ados por pantalla y se actualizar\u00e1n cada cierto tiempo (dado por la instrucci\u00f3n &#8216;<b>delay<\/b>&#8216;).<\/span><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a href=\"http:\/\/2.bp.blogspot.com\/-55e5KbqZl70\/Wunagx1DCFI\/AAAAAAAAAPw\/MJTu9MBkprcBXmZFpxfGG9Y-Df-j3qc-ACK4BGAYYCw\/s1600\/WhatsApp%2BImage%2B2018-05-01%2Bat%2B14.13.33.jpeg\" imageanchor=\"1\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"225\" src=\"https:\/\/blogs.etsii.urjc.es\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33-1024x578.jpeg\" width=\"400\" \/><\/a><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Por otro lado, hemos querido a\u00f1adir a nuestro proyecto la funcionalidad de poder visualizar la temperatura y humedad con independencia de la pantalla LCD. Para ello hemos usado el ethernet shield w5100 para poder conectarnos a Internet y conectarnos a una API donde recopilar nuestros datos: la API de ThingSpeak.<\/span><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<u><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><b>API de ThingSpeak:<\/b><\/span><\/u><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Su especialidad es trabajar con datos. Es una API abierta para el Internet de las Cosas que permite recopilar, almacenar, analizar, visualizar y actuar sobre la informaci\u00f3n recogida en sensores (en nuestro caso DHT22) y dispositivos como aplicaciones web y m\u00f3viles, redes sociales como Twitter&#8230; etc.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Funciona con canales por lo que hemos creado un canal en el cual iremos recopilando la informaci\u00f3n de nuestro sensor a partir de la cual visualizaremos gr\u00e1ficos.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<a href=\"http:\/\/3.bp.blogspot.com\/-oLCf6hSO0qs\/WunbE664UdI\/AAAAAAAAAP8\/nFBdb-pNMqchfrf8vkhz6kn4ggliadNbQCK4BGAYYCw\/s1600\/grafico1.png\" imageanchor=\"1\"><\/a><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><a href=\"http:\/\/4.bp.blogspot.com\/-UMycmuN5jGo\/WunbjKMsdtI\/AAAAAAAAAQc\/RZSEqvfzGXI9yDACQB6ngBzgDCXDObT0gCK4BGAYYCw\/s1600\/d3b01b0bfb5336f3f6a001e28e6870c9%2B%25281%2529.png\" imageanchor=\"1\"><\/a><a href=\"http:\/\/1.bp.blogspot.com\/-gM4BOlDP9yw\/WunbvSs8uTI\/AAAAAAAAAQo\/_v0Vra1HxB0hdqTkcb_PPDmof_jPfVWHwCK4BGAYYCw\/s1600\/c072d6ba5ce5f15f78e2b9a63144c69c%2B%25281%2529.png\" imageanchor=\"1\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"227\" src=\"https:\/\/blogs.etsii.urjc.es\/wp-content\/uploads\/sites\/8\/2018\/05\/c072d6ba5ce5f15f78e2b9a63144c69c28129.png\" width=\"320\" \/><\/a><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"218\" src=\"https:\/\/blogs.etsii.urjc.es\/wp-content\/uploads\/sites\/8\/2018\/05\/d3b01b0bfb5336f3f6a001e28e6870c928129.png\" width=\"320\" \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b>4 &#8211;&nbsp; Montaje del hardware.<\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><a href=\"http:\/\/2.bp.blogspot.com\/-qo71GJOWHk0\/Wunstva05JI\/AAAAAAAAAQ4\/97Gw3EghTMEVDuHAbhFRhIyt4jjDAGpcgCK4BGAYYCw\/s1600\/6010914609f164b47f4e0f6585ad41ee.png\" imageanchor=\"1\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"464\" src=\"https:\/\/blogs.etsii.urjc.es\/wp-content\/uploads\/sites\/8\/2018\/05\/6010914609f164b47f4e0f6585ad41ee-1024x741.png\" width=\"640\" \/><\/a><\/span><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><a href=\"http:\/\/4.bp.blogspot.com\/-yAlfyngY-Wc\/Wuns1kpW7jI\/AAAAAAAAARA\/EvHkONX_d-4J_yancW_Y6hojNvPaPjWmgCK4BGAYYCw\/s1600\/5c28a935-6281-4d55-91b7-8239a306b83a.jpg\" imageanchor=\"1\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"360\" src=\"https:\/\/blogs.etsii.urjc.es\/wp-content\/uploads\/sites\/8\/2018\/05\/5c28a935-6281-4d55-91b7-8239a306b83a-1024x578.jpg\" width=\"640\" \/><\/a><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b>5 &#8211;&nbsp; Software.<\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/LIBRERIAS<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/Librerias Sensor<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;Adafruit_Sensor.h&gt;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;DHT.h&gt;;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;DHT_U.h&gt;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/Librerias I2C LCD:<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;LiquidCrystal_I2C.h&gt;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;Wire.h&gt;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/Librerias Ethernet&nbsp;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;Ethernet.h&gt;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#include &lt;SPI.h&gt;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">LiquidCrystal_I2C lcd(0x27,16,2); \/\/ Establecemos la direccion de la LCD en 0x27 (es de 16&#215;2 -&gt; 16 chars por 2 lineas)<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/CONSTANTES<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#define DHTPIN 5&nbsp; &nbsp; &nbsp;\/\/ Estamos conectados al pin 6(entrada de datos), inicialmente en el 4 pero nos dimos cuenta que lo necesita la placa ethernet \u00bb SS for SD CARD\u00bb<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">#define DHTTYPE DHT22&nbsp; &nbsp;\/\/ Seleccionamos el sensor DHT 22&nbsp; (AM2302)<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">DHT dht(DHTPIN, DHTTYPE); \/\/\/\/ Inicializamos DHT sensor<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Par\u00e1metros para la conexi\u00f3n Ethernet local<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">byte mac[]= { 0xD4, 0x28, 0xB2, 0xFF, 0xA0, 0xA1 }; \/\/ Mac address, tiene que ser \u00fanica en la red local<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Configuracion de ThingSpeak<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">char thingSpeakAddress[] = \u00abapi.thingspeak.com\u00bb; \/\/ Esta es la direcci\u00f3n del servidor al cual vamos a postear los datos.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">String writeAPIKey = \u00ab513N7TSBXOCE4N2D\u00bb; \/\/ Una vez creado un canal necesitamos saber la Key de ese canal y copiarla aqu\u00ed.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">const int updateThingSpeakInterval = 16 * 1000; \/\/ Intervalo de tiempo, cada cuanto posteamos en el servidor.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/VARIABLES<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">float hum;&nbsp; \/\/Almacena los valores de humedad<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">float temp; \/\/Almacena los valores de temperatura<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">long lastConnectionTime = 0;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">boolean lastConnected = false;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">int failedCounter = 0;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Iniciamos el Ethernet Shield<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">EthernetClient client;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">void setup()<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">{<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.begin(9600);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; dht.begin();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.begin(); \/\/Inicializamos el lcd<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.backlight(); \/\/Abrimos el backlight<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; startEthernet(); \/\/Llamamos a la funcion starEthernet<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">}<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">void loop()<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">{<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp;\/\/ Read value from Analog Input Pin 0<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; String analogValue0 = String(analogRead(A0), DEC);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp;&nbsp;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Imprimimos por serial lo que nos haya devuelto el servidor.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; if (client.available()){<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; char c = client.read();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.print(c);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Nos desconectamos de Thingspeak<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; if (!client.connected() &amp;&amp; lastConnected){<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println(\u00ab&#8230; desconectado\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.stop();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Si estamos desconectados del servidor y paso suficiente tiempo, tenemos que volver a subir los nuevos datos.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; if(!client.connected() &amp;&amp; (millis() &#8211; lastConnectionTime &gt; updateThingSpeakInterval)){<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Leersensores();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; updateThingSpeak(\u00ab1=\u00bb+String(temp, DEC)+\u00bb&amp;2=\u00bb+String(hum, DEC));<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp;&nbsp;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; if (failedCounter &gt; 3 ) {<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; startEthernet();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; lastConnected = client.connected();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Funci\u00f3n para enviar los datos a el servidor.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">void updateThingSpeak(String tsData){<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; if (client.connect(thingSpeakAddress, 80)){<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abPOST \/update HTTP\/1.1n\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abHost: api.thingspeak.comn\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abConnection: closen\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abX-THINGSPEAKAPIKEY: \u00ab+writeAPIKey+\u00bbn\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abContent-Type: application\/x-www-form-urlencodedn\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abContent-Length: \u00ab);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(tsData.length());<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(\u00abnn\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; client.print(tsData);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; lastConnectionTime = millis();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; if (client.connected()){<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; &nbsp; Serial.println(\u00abConectando a ThingSpeak&#8230;\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; &nbsp; failedCounter = 0;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; else<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; {<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; &nbsp; failedCounter++;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; &nbsp; Serial.println(\u00abConexion a ThingSpeak fallida (\u00ab+String(failedCounter, DEC)+\u00bb)\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; else{<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; failedCounter++;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println(\u00abConexion a ThingSpeak fallida&nbsp; (\u00ab+String(failedCounter, DEC)+\u00bb)\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; lastConnectionTime = millis();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">}<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp;void startEthernet() {<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; client.stop();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.println(\u00abConectando Arduino a la red..\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; delay(1000);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Intenta conectarse por DHCP y si no funciona usa la configuraci\u00f3n por default.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp;if (Ethernet.begin(mac) == 0)<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; {<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println(\u00abDHCP fallido, resetear Arduino para intentarlo otra vez\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; else<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; {<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println(\u00abArduino conectado a la red usando DHCP\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; &nbsp; Serial.println();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; }<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp;&nbsp;<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; delay(1000);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">}<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">\/\/ Funci\u00f3n para leer los sensores y almacenarlos en las variables globales.<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">void Leersensores() {<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; temp = dht.readTemperature();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; hum = dht.readHumidity();<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.print(\u00bb Temp = \u00ab);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.print(temp);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.print(\u00bb C, \u00ab);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.print(\u00bb Hum = \u00ab);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.print(hum);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; Serial.println(\u00bb %\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.setCursor(0,0);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.print(\u00abTemp: \u00ab);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.print(temp);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.print(\u00bb C\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.setCursor(0, 1);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.print(\u00abHumedad: \u00ab);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.print(hum);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; lcd.print(\u00bb %\u00bb);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp; delay(3000);<\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">}<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&nbsp;&nbsp;<a href=\"http:\/\/4.bp.blogspot.com\/-fE8BGMGagbc\/Wun4YuEqPhI\/AAAAAAAAARg\/7DQZt28VlJ85W3ffhd7ErPEfM1Sz17ixgCK4BGAYYCw\/s1600\/6ef3c617b5a68edd960b54d646527d1b.png\" imageanchor=\"1\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"640\" src=\"https:\/\/blogs.etsii.urjc.es\/wp-content\/uploads\/sites\/8\/2018\/05\/6ef3c617b5a68edd960b54d646527d1b.png\" width=\"570\" \/><\/a><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Esto es lo que nos mostrar\u00e1 el serial monitor al subir el c\u00f3digo a la placa.<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<b><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">6 &#8211;&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">Problemas e inconvenientes que hemos tenido.<\/span><\/b><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Durante el montaje del proyecto nos encontramos con algunos problemas.&nbsp;<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Uno de ellos lo tuvimos con la pantalla LCD que ven\u00eda con un m\u00f3dulo de interfaz I2C que, en principio, ayuda a regular la potencia de la pantalla y facilita el montaje. Nuestro error fue no darnos cuenta de que ten\u00edamos que ajustar el potenci\u00f3metro ajustando as\u00ed el contraste de la LCD y poder ver lo que se imprim\u00eda.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Por otro lado, tuvimos la idea de reproducir la salida del DHT22 mediante un altavoz. Para ello compramos un m\u00f3dulo MP3 llamado DF Player Mini Mp3. En principio todo iba bien pero tuvimos problemas con la corriente y se nos fundi\u00f3. Al haberse dado este problema cerca de la presentaci\u00f3n de nuestro proyecto fue imposible conseguir otro m\u00f3dulo por lo que descartamos la idea para este presente proyecto. No descartamos la idea de implementarlo en un futuro.<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">A\u00f1adir tambi\u00e9n que nos encontramos con ligeros errores a la hora de conectarnos con la base de ThingSpeak, aunque no fueron dif\u00edciles&nbsp;de resolver.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Y por \u00faltimo, y no por ello menos importante, tenemos presente el problema de la portabilidad de nuestro proyecto pues somos conscientes de que un dispositivo que mide la temperatura y humedad debe ser m\u00e1s peque\u00f1o.&nbsp;<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\"><b><br \/><\/b><\/span><\/div>\n<div style=\"background-color: white;\">\n<b><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">7 &#8211;&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">Mejoras y complementos futuros del proyecto.<\/span><\/b><\/div>\n<div style=\"background-color: white;\">\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">Las mejoras que proponemos son las siguientes:<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Reducir el tama\u00f1o del cableado y de la placa base con el fin de conseguir que el dispositivo sea portable.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Sustituir la ethernet shield por una WiFi, pues es m\u00e1s incomodo encontrar un puerto Ethernet al que enchufarlo que conectarlo a una red inal\u00e1mbrica.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Encontrar un dise\u00f1o visual atractivo y eficiente.<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Implementar una voz que lea la temperatura y humedad (similar a SparkFun VoiceBox SHield).<\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><b style=\"font-family: &quot;Times New Roman&quot;;\"><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">8 &#8211;&nbsp;<\/span><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace; font-size: large;\">Enlaces de inter\u00e9s.<\/span><\/b><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Enlace al v\u00eddeo de la pr\u00e1ctica (hardware):&nbsp;<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><b>https:\/\/drive.google.com\/open?id=1SzKDf97cDZw3R8NMLXitBUkFs9EEsdUZ<\/b><\/span><br \/>\n<b><span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><\/span><\/b><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Enlace al v\u00eddeo demostraci\u00f3n de la base de datos:<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><b>https:\/\/drive.google.com\/open?id=1K45IgEUYT69d5MhC76-v-kFvdU3s72Zj<\/b><\/span><\/p>\n<div>\n<\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Enlace a la memoria de la pr\u00e1ctica:&nbsp;<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><span style=\"font-family: courier new, courier, monospace;\"><b>https:\/\/drive.google.com\/open?id=1umZaWUQhtgbnCwlaw6arBmpqFPEq2BYd<\/b><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\">&#8211; Enlace a presentaci\u00f3n:<\/span><br \/>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><br \/>\n<span style=\"font-family: courier new, courier, monospace;\"><b>https:\/\/drive.google.com\/open?id=1-4bBaUCu5PJEOJy0FCJ4VWs9zC2e7Y8y<\/b><\/span><\/div>\n<div>\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n<\/div>\n<div style=\"background-color: white;\">\n<span style=\"font-family: &quot;courier new&quot; , &quot;courier&quot; , monospace;\"><br \/><\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Dispositivo medidor de temperatura y humedad Proyecto realizado por Ariana Gonz\u00e1lez Garz\u00f3n,&nbsp; Alejandro Ram\u00edrez Prieto y Carlos Rodrigo Rivero. \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* \u00cdndice: 1 &#8211;&nbsp; Introducci\u00f3n. 2 &#8211;&nbsp; Materiales usados. 3 &#8211;&nbsp; Funcionamiento. 4 &#8211;&nbsp; Montaje&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":1533,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-60","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-proyectos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dispositivo Medidor De Temperatura y Humedad - Proyectos con Arduino.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dispositivo Medidor De Temperatura y Humedad - Proyectos con Arduino.\" \/>\n<meta property=\"og:description\" content=\"Dispositivo medidor de temperatura y humedad Proyecto realizado por Ariana Gonz\u00e1lez Garz\u00f3n,&nbsp; Alejandro Ram\u00edrez Prieto y Carlos Rodrigo Rivero. \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* \u00cdndice: 1 &#8211;&nbsp; Introducci\u00f3n. 2 &#8211;&nbsp; Materiales usados. 3 &#8211;&nbsp; Funcionamiento. 4 &#8211;&nbsp; Montaje&#046;&#046;&#046;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/\" \/>\n<meta property=\"og:site_name\" content=\"Proyectos con Arduino.\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-02T16:57:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-05-04T17:56:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"903\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Administrador de la red\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Administrador de la red\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/\"},\"author\":{\"name\":\"Administrador de la red\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#\\\/schema\\\/person\\\/bdc38fea664f13638d2a51f4d2fc7211\"},\"headline\":\"Dispositivo Medidor De Temperatura y Humedad\",\"datePublished\":\"2018-05-02T16:57:00+00:00\",\"dateModified\":\"2019-05-04T17:56:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/\"},\"wordCount\":1523,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2018\\\/05\\\/WhatsAppImage2018-05-01at14.13.33.jpeg\",\"articleSection\":[\"Proyectos\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/\",\"url\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/\",\"name\":\"Dispositivo Medidor De Temperatura y Humedad - Proyectos con Arduino.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2018\\\/05\\\/WhatsAppImage2018-05-01at14.13.33.jpeg\",\"datePublished\":\"2018-05-02T16:57:00+00:00\",\"dateModified\":\"2019-05-04T17:56:00+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2018\\\/05\\\/WhatsAppImage2018-05-01at14.13.33.jpeg\",\"contentUrl\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2018\\\/05\\\/WhatsAppImage2018-05-01at14.13.33.jpeg\",\"width\":1600,\"height\":903},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/dispositivo-medidor-de-temperatura-y\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Portada\",\"item\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Dispositivo Medidor De Temperatura y Humedad\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#website\",\"url\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/\",\"name\":\"Proyectos con Arduino.\",\"description\":\"Blog de proyectos de Arduino de alumnos de la URJC\",\"publisher\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#organization\",\"name\":\"Universidad Rey Juan Carlos\",\"url\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2022\\\/05\\\/logourjc-1.jpg\",\"contentUrl\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/wp-content\\\/uploads\\\/sites\\\/8\\\/2022\\\/05\\\/logourjc-1.jpg\",\"width\":745,\"height\":288,\"caption\":\"Universidad Rey Juan Carlos\"},\"image\":{\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/#\\\/schema\\\/person\\\/bdc38fea664f13638d2a51f4d2fc7211\",\"name\":\"Administrador de la red\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e8e366128f81a82735b0b00fe6d280414b4bad087e380fa9fee9694454b8a6fa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e8e366128f81a82735b0b00fe6d280414b4bad087e380fa9fee9694454b8a6fa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e8e366128f81a82735b0b00fe6d280414b4bad087e380fa9fee9694454b8a6fa?s=96&d=mm&r=g\",\"caption\":\"Administrador de la red\"},\"sameAs\":[\"https:\\\/\\\/blogs.etsii.urjc.es\"],\"url\":\"https:\\\/\\\/blogs.etsii.urjc.es\\\/dseytr\\\/author\\\/etsiiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dispositivo Medidor De Temperatura y Humedad - Proyectos con Arduino.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/","og_locale":"es_ES","og_type":"article","og_title":"Dispositivo Medidor De Temperatura y Humedad - Proyectos con Arduino.","og_description":"Dispositivo medidor de temperatura y humedad Proyecto realizado por Ariana Gonz\u00e1lez Garz\u00f3n,&nbsp; Alejandro Ram\u00edrez Prieto y Carlos Rodrigo Rivero. \/*&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;* \u00cdndice: 1 &#8211;&nbsp; Introducci\u00f3n. 2 &#8211;&nbsp; Materiales usados. 3 &#8211;&nbsp; Funcionamiento. 4 &#8211;&nbsp; Montaje&#46;&#46;&#46;","og_url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/","og_site_name":"Proyectos con Arduino.","article_published_time":"2018-05-02T16:57:00+00:00","article_modified_time":"2019-05-04T17:56:00+00:00","og_image":[{"width":1600,"height":903,"url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33.jpeg","type":"image\/jpeg"}],"author":"Administrador de la red","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Administrador de la red","Tiempo de lectura":"8 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#article","isPartOf":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/"},"author":{"name":"Administrador de la red","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#\/schema\/person\/bdc38fea664f13638d2a51f4d2fc7211"},"headline":"Dispositivo Medidor De Temperatura y Humedad","datePublished":"2018-05-02T16:57:00+00:00","dateModified":"2019-05-04T17:56:00+00:00","mainEntityOfPage":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/"},"wordCount":1523,"commentCount":0,"publisher":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#organization"},"image":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#primaryimage"},"thumbnailUrl":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33.jpeg","articleSection":["Proyectos"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/","url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/","name":"Dispositivo Medidor De Temperatura y Humedad - Proyectos con Arduino.","isPartOf":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#website"},"primaryImageOfPage":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#primaryimage"},"image":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#primaryimage"},"thumbnailUrl":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33.jpeg","datePublished":"2018-05-02T16:57:00+00:00","dateModified":"2019-05-04T17:56:00+00:00","breadcrumb":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#primaryimage","url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33.jpeg","contentUrl":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2018\/05\/WhatsAppImage2018-05-01at14.13.33.jpeg","width":1600,"height":903},{"@type":"BreadcrumbList","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/dispositivo-medidor-de-temperatura-y\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Portada","item":"https:\/\/blogs.etsii.urjc.es\/dseytr\/"},{"@type":"ListItem","position":2,"name":"Dispositivo Medidor De Temperatura y Humedad"}]},{"@type":"WebSite","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#website","url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/","name":"Proyectos con Arduino.","description":"Blog de proyectos de Arduino de alumnos de la URJC","publisher":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blogs.etsii.urjc.es\/dseytr\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#organization","name":"Universidad Rey Juan Carlos","url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#\/schema\/logo\/image\/","url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2022\/05\/logourjc-1.jpg","contentUrl":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-content\/uploads\/sites\/8\/2022\/05\/logourjc-1.jpg","width":745,"height":288,"caption":"Universidad Rey Juan Carlos"},"image":{"@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/blogs.etsii.urjc.es\/dseytr\/#\/schema\/person\/bdc38fea664f13638d2a51f4d2fc7211","name":"Administrador de la red","image":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/secure.gravatar.com\/avatar\/e8e366128f81a82735b0b00fe6d280414b4bad087e380fa9fee9694454b8a6fa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/e8e366128f81a82735b0b00fe6d280414b4bad087e380fa9fee9694454b8a6fa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e8e366128f81a82735b0b00fe6d280414b4bad087e380fa9fee9694454b8a6fa?s=96&d=mm&r=g","caption":"Administrador de la red"},"sameAs":["https:\/\/blogs.etsii.urjc.es"],"url":"https:\/\/blogs.etsii.urjc.es\/dseytr\/author\/etsiiadmin\/"}]}},"_links":{"self":[{"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/posts\/60","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/comments?post=60"}],"version-history":[{"count":2,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/posts\/60\/revisions"}],"predecessor-version":[{"id":2101,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/posts\/60\/revisions\/2101"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/media\/1533"}],"wp:attachment":[{"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/media?parent=60"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/categories?post=60"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.etsii.urjc.es\/dseytr\/wp-json\/wp\/v2\/tags?post=60"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}