piettetech / PietteTech_DHT

DHT Sensor Library for Spark Core
Other
53 stars 60 forks source link

How to have decimal value ? #1

Closed petitssoldats closed 9 years ago

petitssoldats commented 9 years ago

Hi, i just want to know how can i get decimal value (float) for temperature & humidity ? is it possible ?

Thanks

piettetech commented 9 years ago

There are two methods for accessing the Temperature and Humidity -

float readTemperature();
float readHumidity();

They both return floating point variables.

Hope this helps