STC31 co2,humidity,Temp sensors , Unable to get humidity readings

hi Umesh here

I am not able to get humidity readings in arduino code, the code only gives output for temperature and CO2 readings but the sensor (STC31) is capable of giving humidity readings also.

Please help to solve this problem

thanks

Have you tried this example?

https://github.com/sparkfun/SparkFun_ST … onTest.ino

It determines the humidity in line#138. Please try this if you already have not.

And if you ever look for a cheaper temperature and humidity sensor, you can try DHT11:

https://www.theengineeringprojects.com/ … acing.html

Thank you for the reply, I will definitely try this code for SCT31, However, my requirements is to measure CO2, RH and temperature all together that’s why I have selected SCT31, I think DHT11 only measures RH and temperature… thanks again for recommending the sensors, Please suggest better sensors to measure co2, RH, and temperature together, it will be very helpful

Doesn’t look like the STC31 detects humidity but sparkfuns board Also includes a shtc3 humidity sensor.

You can find code for humidity below.

https://github.com/sparkfun/SparkFun_SH … no_Library

bidrohini:
Have you tried this example?

https://github.com/sparkfun/SparkFun_ST … onTest.ino

It determines the humidity in line#138. Please try this if you already have not.

And if you ever look for a cheaper temperature and humidity sensor, you can try DHT11:

https://www.theengineeringprojects.com/ … acing.html

I tried to use the code as you suggested but it is not giving output, it shows the temperature is out of bound. dont know the reason

Oh, I see. I think you’d better follow Yellowdog’s suggestion.