Reads the temperature in either Celsius or Fahrenheit. Default reading is Celsius.
HS300x.readTemperature(CELSIUS) // Celsius reading
HS300x.readTemperature(FAHRENHEIT) // Fahrenheit reading
FAHRENHEIT
CELSIUS
float
- temperature in specified unit.