To use a DS18B20 temperature sensor, you would make sure you have a device created in the sketch as follows:
static st::PS_DS18B20_Temperature sensor2(F("temperature1"), 15, 0, PIN_TEMPERATURE_1, false, 10, 1);
This is directly from the ST_Anything_Multiples_ESP8266WiFi.ino example sketch, which is where you should start for an ESP8266 based board.
At the top of the corresponding .cpp and .h files for each device, you will find the documentation for that device. For example:
//******************************************************************************************
// File: PS_DS18B20_Temperature.cpp
// Author: Dan G Ogorchock
//
// Summary: PS_DS18B20_Temperature is a class which implements both the SmartThings "Temperature Measurement" capability.
// It inherits from the st::PollingSensor class. The current version uses a digital pin to measure the
// temperature from a Dallas Semiconductor One Wire DS18B20 series sensor.
//
// Create an instance of this class in your sketch's global variable section
// For Example: st::PS_DS18B20_Temperature sensor1(F("temperature1"), 120, 0, PIN_TEMPERATURE, false); (for a single sensor)
// st::PS_DS18B20_Temperature sensor1(F("temperature"), 120, 0, PIN_TEMPERATURE, false, 10, 3); (for 3 sensors)
//
// st::PS_DS18B20_Temperature() constructor requires the following arguments
// - String &name - REQUIRED - the name of the object - either "temperature1" for a single sensor, or "temperature" for multiple sensors
// - long interval - REQUIRED - the polling interval in seconds
// - long offset - REQUIRED - the polling interval offset in seconds - used to prevent all polling sensors from executing at the same time
// - byte pin - REQUIRED - the Arduino Pin to be used for the One-Wire DS18B20 sensor conenction
// - bool In_C - OPTIONAL - true = Report Celsius, false = Report Farenheit (Farentheit is the default)
// - byte resolution - OPTIONAL - DS18B20 sensor resolution in bits. 9, 10, 11, or 12. Defaults to 10 for decent accuracy and performance
// - byte num_sensors - OPTIONAL - number of OneWire DS18B20 sensors attached to OneWire bus - Defaults to 1
// - byte sensorStartingNum - OPTIONAL - Starting number for sending temperature sensor data when using multiple sensors on one pin - Defaults to 1
//
Hopefully this will help clear things up a bit.
Basically, start with one of the example sketches. Then add/remove devices within the sketch's setup() routine as you see fit for your application. You can look through some of the other ST_Anything_Multiuples... sketches for examples of how other devices are used. The ST_Anything_Multiples_EthernetW5500.ino has a tone of example devices, due to the Arduino MEGA's high GPIO count.