MCPcopy Create free account
hub / github.com/RobTillaart/Arduino / getTemperature

Method getTemperature

libraries/SHT31/SHT31.h:83–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82 float getHumidity() { return _rawHumidity * (100.0 / 65535); };
83 float getTemperature() { return _rawTemperature * (175.0 / 65535) - 45; };
84 float getFahrenheit() { return _rawTemperature * (63.0 /13107.0) - 49; };
85 uint16_t getRawHumidity() { return _rawHumidity; };
86 uint16_t getRawTemperature() { return _rawTemperature; };

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36