Arduino_HS300x - readTemperature()

Description

Reads the temperature in either Celsius or Fahrenheit. Default reading is Celsius.

Syntax

HS300x.readTemperature(CELSIUS) // Celsius reading
HS300x.readTemperature(FAHRENHEIT) // Fahrenheit reading

Parameters

  • FAHRENHEIT
  • CELSIUS

Returns

  • float - temperature in specified unit.