SHT30 return convert to F

  • Hi!

    I am using my M5Paper as a weather dashboard using a sweet github project by Bastelschlumpf (project link

    I live in the very backwards USA where we use Fahrenheit, miles, etc. I was able to modify the project to return data in F and mph, but I cannot figure out how to get the SHT30 temperature data to convert to F. Can anyone please look at the code and files and tell me exactly where and how to add a conversion code? I am very new to coding and need exact instructions like change line 435 in X.h to "code here", etc.


  • This post is deleted!

  • Did you get it sorted?
    I started to post the formula, but I realized that you need to edit the application. I say “application” because it is confusingly written in an advanced, professional C++ style, not the fun Arduino IDE style where everything is spelled out and you just edit the line.
    I mean: the loop is empty. (!)
    I don’t have a ePaper to try it.

    SHT30.h line 30:
    myData.sht30Temperatur = (int) M5.SHT30.GetTemperature() * ((9.0 / 5.0) + 32.0);