Last active
February 17, 2020 17:19
-
-
Save parzibyte/1bc18a08801446743f873f7c812e2610 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define PIN_CONEXION D8// A cuál pin está conectado el lector | |
#define TIPO_SENSOR DHT22 // Puede ser DHT11 también | |
DHT sensor(PIN_CONEXION, TIPO_SENSOR); | |
float humedad, temperaturaEnGradosCelsius = 0; | |
int ultimaVezLeido = 0; | |
long milisegundosDeEsperaParaLeer = 2000; // 2 segundos |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment