Searched refs:humidity (Results 1 – 5 of 5) sorted by relevance
75 uint16_t humidity = 0; in getHumidity() local87 humidity = m_i2c.readReg(TH02_REG_DATA_H) << 8; in getHumidity()88 humidity |= m_i2c.readReg(TH02_REG_DATA_L); in getHumidity()89 humidity >>= 4; in getHumidity()91 return ((float(humidity) / 16.0) - 24.0); in getHumidity()
48 float humidity = 0.0; in main() local53 humidity = sensor->getHumidity (); in main()54 std::cout << "Temperature = " << temperature << ", Humidity = " << humidity << std::endl; in main()
51 float humidity = 0.0; in main() local59 humidity = sensor->getHumidity(); in main()63 humidity << in main()
51 float humidity = 0.0; in main() local61 humidity = sensor->getHumidity(false); in main()65 humidity << in main()
39 float humidity = 0; in main() local48 humidity = sensor.getHumidity(); in main()51 System.out.println("Humidity: " + humidity + ", Temperature: " + temperature in main()