I'm typically so lucky and able to find starter / example code to get my foot in the door but the sht30 on an esp8266 is just not an easy find.
The sample code I find spits out wildly incorrect data from the polling sensors.
I know the correct way is to figure it out on your own, but that's a tall order for this job.
Does anybody know of functioning example code for the esp8266 connected to a sht30 (D1 mini sheild) that will spit out a correct Fahrenheit?
Please don't hate me because I'm lazy.
rabbitrevenge:
Please don't hate me because I'm lazy.
Given that, you're probably better off paying someone to do your work for you: Gigs and Collaborations .
gfvalvo:
Given that, you're probably better off paying someone to do your work for you: Gigs and Collaborations .
You just had to be condescending, didn't you.
What does " that will spit out a correct Fahrenheit?" mean in English?
Paul
This is as close as I can get
using
#include <WEMOS_SHT3X.h>
SHT3X sht30(0x45);
void setup() {
Serial.begin(115200);
}
void loop() {
sht30.get();
Serial.print("Temperature in Celsius : ");
Serial.println(sht30.cTemp);
Serial.print("Temperature in Fahrenheit : ");
Serial.println(sht30.fTemp);
Serial.print("Relative Humidity : ");
Serial.println(sht30.humidity);
Serial.println();
delay(1000);
}
I'm looking everywhere for the math to convert this and it just shouldn't be this hard.
Hi,
Is best that you attach files to your post, the forum editor will then load them into your post.
The resolution of your screen captures are a bit low.
I can see the readings are not unstable, but probably inaccurate.
Tom..
Hi,
I think this is the code you are trying to use.
#include <WEMOS_SHT3X.h>
SHT3X sht30(0x45);
void setup()
{
Serial.begin(9600);
}
void loop() {
if(sht30.get()==0){
Serial.print("Temperature in Celsius : ");
Serial.println(sht30.cTemp);
Serial.print("Temperature in Fahrenheit : ");
Serial.println(sht30.fTemp);
Serial.print("Relative Humidity : ");
Serial.println(sht30.humidity);
Serial.println();
}
else
{
Serial.println("Error!");
}
delay(1000);
}
Try this, the code only reads the SHT when there is data available, and you cannot just keep reading it when you want,
hence
if(sht30.get()==0){
Source;
This time we look at the SHT30 shield from Wemos. Now there are other versions of this board as well, this is the official one. You will notice they now use LOLIN (after all of the dubious clones of their products I’m assuming on the internet) For...
Estimated reading time: 2 minutes
Tom..
That didn't look like it effected anything.
output:
Temperature in Celsius : 2947526656.00
Temperature in Fahrenheit : 5305547776.00
Relative Humidity : 1684300928.00
Temperature in Celsius : 2947526656.00
Temperature in Fahrenheit : 5305547776.00
Relative Humidity : 1684300928.00
Temperature in Celsius : 2947526656.00
Temperature in Fahrenheit : 5305547776.00
Relative Humidity : 1684300928.00
Hi,
Can you please post a picture of your project so we can see your component layout?
Thanks.. Tom...
system
Closed
May 17, 2021, 2:08am
10
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.