This is a SHT20 I2C temperature & humidity sensor with waterproof probe. It comes with the 4C CMOSens® SHT20 temperature & humidity sensor chip, and the probe has gone through dual waterproof protection. The SHT20 I2C temperature & humidity sensor adopt Sensirion new technique. Besides the capacitive type humidity sensor and the band gap temperature sensor, the chip contains an amplifier, A/D converter, OTP memory and a digital processing unit. Compared with early SHT1x series and SHT7x series, SHT20 shows better reliability and long-term stability. It can measure surrounding environment temperature and relative air humidity precisely.
SKU: SEN0227
To use this library, first download the library file, paste it into the \Arduino\libraries directory, then open the examples folder and run the demo in the folder.
/**
* @fn initSHT20
* @brief Init function
* @return None
*/
void initSHT20(void);
/**
* @fn readHumidity
* @brief Read the measured data of air humidity
* @return Return the measured air humidity data of float type, unit: %
*/
float readHumidity(void);
/**
* @fn readTemperature
* @brief Read the measured temp data
* @return Return the measured temp data of float type, unit: C
*/
float readTemperature(void);
/**
* @fn checkSHT20
* @brief Check the current status information of SHT20
* @n Status information: End of battery, Heater enabled, Disable OTP reload
* @n Check result: yes, no
* @return None
*/
void checkSHT20(void);
MCU | Work Well | Work Wrong | Untested | Remarks |
---|---|---|---|---|
Arduino Uno | √ | |||
Arduino MEGA2560 | √ | |||
Arduino Leonardo | √ | |||
FireBeetle-ESP8266 | √ | |||
FireBeetle-ESP32 | √ | |||
FireBeetle-M0 | √ | |||
Micro:bit | √ |
Written by Zhangjiawei(jiawei.zhang@dfrobot.com), 2021. (Welcome to our website)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。