API Reference

Class Methods

temperature

Starts a temperature measurement.

Usage

uFire_SHT20::temperature();

Example

#include "uFire_SHT20.h"
uFire_SHT20 sht20;

float temp_C = sht20.temperature();

Returns

Temperature in C

temperature_f

Starts temperature measurement.

Usage

uFire_SHT20::temperature_f();

Example

#include "uFire_SHT20.h"
uFire_SHT20 sht20;

float temp_C = sht20.temperature_f();

Returns

Temperature in F

humidity

Starts humidity measurement.

Usage

uFire_SHT20::humidity();

Example

#include "uFire_SHT20.h"
uFire_SHT20 sht20;

float rh = sht20.humidity();

Returns

Humidity in RH %

connected

Determines if the sensor is connected.

Usage

uFire_SHT20::connected();

Example

#include "uFire_SHT20.h"
uFire_SHT20 sht20;

bool connected = sht20.connected();

Returns

boolean value for the sensor being connected