Codigo Del Arduino.txt

  • Uploaded by: Rodrigo Gerardo Maita Rodriguez
  • 0
  • 0
  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Codigo Del Arduino.txt as PDF for free.

More details

  • Words: 56
  • Pages: 1
#include int int int int

SENSOR = 2; led =4; temp; humedad;

DHT dht (SENSOR, DHT11); void setup(){ dht.begin(); pinMode(led,OUTPUT); Serial.begin(9600); } void loop(){ temp = dht.readTemperature(); humedad = dht.readHumidity(); if(temp<37){ digitalWrite(led,HIGH); Serial.print("Temperatura: "); Serial.println(temp); Serial.print("C"); Serial.println("Humedad: "); Serial.print(humedad); Serial.print("%"); delay(2000); } else{ digitalWrite(led,LOW); Serial.print("Temperatura: "); Serial.println(temp); Serial.print("C"); Serial.println("Humedad: "); Serial.print(humedad); Serial.print("%"); delay(2000); } }

Related Documents


More Documents from "Rodrigo Gerardo Maita Rodriguez"