logo

Crowdly

Запропонований програмний код описує роботу датчиків: float t ; float h...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Запропонований програмний код описує роботу датчиків:

float t;

float h;

#

include "DHT.h"

DHT dht(DHTPIN, DHT11); 

void setup() {

Serial.begin(9600); 

dht.begin();

}

void loop() {

delay(2000); 

h = dht.readHumidity(); 

t = dht.readTemperature(); 

if (isnan(h) || isnan(t)) { 

Serial.println();

return;

}

Serial.print();

Serial.print(h);

Serial.print();

Serial.print(t);

Serial.println(" *C "); 

}

0%
0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on elr.tnpu.edu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!