You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • How about changing your existing callback:

    dht.read(function (a) {Temp = a.temp.toString();Humidity = a.rh.toString();});
    

    to:

    dht.read(function (a) {
      Temp = a.temp.toString();
      Humidity = a.rh.toString();
      sendForm(Temp, Humidity);
    });
    

    So now you send the form as soon as you have the information ready?

About

Avatar for Gordon @Gordon started