You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LoRaGateway_BTS2A/fakestation/Humidite.ino

8 lines
233 B
C++

// renvoie le taux d'humidité en % du DHT12
uint16_t LireHumidite() {
//float H = dht12.readHumidity(); //lecture du taux d'humidité
float H = random(0,100); //lecture du taux d'humidité
return (uint16_t)H; // 0% à 100%
}