Thanks to Nathan for kick-starting the customization of the LIFA firmware and for implementing a LV Lib.
I fixed couple of issues, rearranged the code, and completed the implementation to support setting the DHT_Pin # and DHT_Type in LV code.
The code was tested fine with DHT11.
Calculations for DHT21/22 were added in LV but I have no such sensor to test with.
I just realized that I had an error in calculating the DHT21/22 temp when it's negative; obviously it will be hard to discover this error in warm weather!
Correction attached as Rev B
I am happy for you Morvy187!
I see that you are using HDT22. If you can place the sensor in a freezer and ensure that it still gives valid readings when negative, it would be great. I am still not 100% sure that negative Temps work fine! My HDT11 sensor doesn't go below 0 Deg C.
For some reason I couldn't read Analog inputs after reading the DHT sensor no matter what I try. So I updated the LIFA firmware with DHT code from the Arduino site: http://playground.arduino.cc/Main/DHTLib, which is a much cleaner implementation than the Adafruit's.
Now it works fine! Check the attached 'DHT_Test.lvproj', after you upload the modified LIFA_Base, of course.
hey sambo plz could you give a littel explanation of that new Progman you did upload and why there is ana analog voltage read ports ????????
I have an application where I have to read several analog sensors in addition to ambient temperature and humidity provided by the DHT sensor.