Hello there,
I am testing a DHT sensor for another project.
It all works, but the problem is that when I first start up the test circuit, it says that my house is 73 F. My house is 68 F.
After a while, the test circuit says that my house is 68 F.
The circuit is right next to me on my desk. No heaters or ACs nearby.
I am using a Arduino Mega 2560 clone from Elegoo.
What could be the problem?
// For some strange reason, it takes the DHT a long time to settle down a display the corect temp.
#include "DHT.h"
DHT dht;
void setup()
{
Serial.begin(9600);
dht.setup(2); // data pin 2
}
void loop()
{
delay(dht.getMinimumSamplingPeriod());
Serial.print(dht.getTemperature());
Serial.print("\t");
Serial.println(dht.getTemperature() * 1.8 + 32 );
}