This work is based on Adafruit_SHT31, thanks very much!!
This is a arduino driver/library of sht31 sensor for NodeMCU which is a devkit based on esp8266. It also can be applied to other esp8266 board.
To use this arduino driver/library, you Must first install esp8266/Arduino.
cd ~/Documents/Arduino/libraries
git checkout https://github.com/tomjamescn/NodeMCU_SHT31
restart arduino IDE
#include <NodeMCU_SHT31.h>
Please see the example for details.