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

Method getTemperature

libraries/SHT2x/SHT2x.cpp:242–246  ·  view source on GitHub ↗

//////////////////////////////////////////////////// TEMPERATURE AND HUMIDTY

Source from the content-addressed store, hash-verified

240// TEMPERATURE AND HUMIDTY
241//
242float SHT2x::getTemperature()
243{
244 // par 6.2
245 return -46.85 + (175.72 / 65536.0) * _rawTemperature;
246}
247
248
249float SHT2x::getHumidity()

Callers 1

unittestFunction · 0.45

Calls

no outgoing calls

Tested by 1

unittestFunction · 0.36