Simple Sensirion Sht 11 Code
NWCCTV
Posts: 3,629
For the Basic Stamp there is code that simply displays the Temperature and Humidity. I am looking for something like this in Spin. All of the demos seem to have all sorts of data displayed that I do not need. Before I start modifying the demos, I thought I would ask if anyone already has code that will display the current temperature and humidity only. Thanks.
Comments
There are two demos. The first simply shows how to read the values and display them using Parallax Serial Terminal. A second demo shows how to change the resolution at run time, and how to turn on and off the heater (which is hardly ever useful in practice).It also shows the conversion times in milliseconds, so that you can assess the difference in speed between the modes.
degF := rht.ReadTemperature * 9 / 500 + 32.
There is a bit of roundoff bias in that. Is it good enough? If you want it to 0.1 degF, use
degF := rht.ReadTemperature * 9 / 50 + 320