-->
Page 1 of 1

FAN NOT WORKING

PostPosted: Sun Dec 19, 2021 2:23 pm
by BritneyLynn
Hello Everybody,

I've a working hardware setup and two codes 1 to read the sht30 and push the data to my tft screen.
I want to combine these whenever the humidity is over 50% the fans should go on.
My searching leads me to think I need to convert my sht30.humidity into an int before making the if loop.
Or it could be something entirely else ofcourse
help me?

Re: FAN NOT WORKING

PostPosted: Thu Dec 23, 2021 7:52 am
by rpiloverbd
Are you using the "SHT31.h" library? It outputs the humidity directly in decimal format. It doesn't look like any conversion is essential here. You may find this helpful if you already have not checked. https://electropeak.com/learn/interfaci ... h-arduino/