-
Notifications
You must be signed in to change notification settings - Fork 113
Initial reading inaccurate when using MODE_SLEEP #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I've been using forced mode and have also noticed the first reading can be far off for all values |
Initial readings for the humidity and pressure can be off based on your sample code because they depend on the temperature reading. There is a instance variable t_fine that both humidity and pressure reference. It is only initialized in when reading the temperature. If you want more accurate humidity and pressure readings, I would advise reading the temperature first. |
@pbolduc is correct. The humidity and pressure sensor values are temperature compensated. The |
I
Serial.print()
the following to the console. Notice the intialh_pc
,p_hpa
andalt_m
readings are off and how it takes 16ms to read...If it helps I am using PlatformIO with the latest ESP32 Arduino (1.3.0) on the Lolin Wemos D1 mini Pro
My
main.cpp
looks as follows:The text was updated successfully, but these errors were encountered: