Dth11.docx

  • Uploaded by: Jose Miguel
  • 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 Dth11.docx as PDF for free.

More details

  • Words: 43
  • Pages: 1
#include int pin=2; DTH11 dth11(pin);

void setup() { Serial.begin(9600); }

void loop() { int err; float temp, hum; if((err= dth11.read(hum, temp)) ==0)

{ Serial.print("Temperatura: "); Serial.print(temp); Serial.print("Humedad: "); Serial.print(hum); Serial.println(); } else { Serial.println(); Serial.print("Error Num: "); Serial.print(err); Serial.println(); } delay(1000); }

More Documents from "Jose Miguel"

Dth11.docx
June 2020 9
Contenido.docx
June 2020 11
Hispanianet
May 2020 4
Negocios Desde Casa
June 2020 3
Joseh.pdf
November 2019 18