So ta medindo a temperatura e a umidade naõ,alguem pode me ajudar por favor.

void setup(){
pinMode(3,INPUT); //button input
m.init(); // module initialize
m.setIntensity(15); // dot matix intensity 0-15
Serial.begin(9600); // serial communication initialize
Serial.println("DHTxx test!");
dht.begin();
}

void loop(){

printStringWithShift(" ARDUINO ", 300);
int t = dht.readTemperature();
int h = dht.readHumidity();


char temp[4];
itoa(t,temp,10);
Serial.println(temp);
Serial.println(Umid);

printStringWithShift("temp: ", 100);
printStringWithShift(temp, 100);
printStringWithShift("C ", 100);

printStringWithShift("Umiddade: ", 100);
printStringWithShift(Umid, 100);
printStringWithShift("% ", 100);





delay(300);
m.shiftLeft(false, true);
}

Exibições: 134

Responder esta

Respostas a este tópico

O motivo é porque teu sketch não sabe de onde vem "Umid"

Tente aprender olhando aqui:

http://blog.filipeflop.com/sensores/monitorando-temperatura-e-umida...

Caro colega deu certo valeu obrigado pela atenção.

RSS

© 2024   Criado por Marcelo Rodrigues.   Ativado por

Badges  |  Relatar um incidente  |  Termos de serviço