From 68826376ee5f47783c644c6604f4411ec747cd7e Mon Sep 17 00:00:00 2001
From: guowenxue <guowenxue@gmail.com>
Date: Fri, 14 Nov 2025 23:52:16 +0800
Subject: [PATCH] Add UDP DNS client source code

---
 project/4.mqttd/booster/sht20.h |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/project/4.mqttd/booster/sht20.h b/project/4.mqttd/booster/sht20.h
new file mode 100644
index 0000000..6c9f9f9
--- /dev/null
+++ b/project/4.mqttd/booster/sht20.h
@@ -0,0 +1,34 @@
+/*********************************************************************************
+ *      Copyright:  (C) 2023 LingYun IoT System Studio
+ *                  All rights reserved.
+ *
+ *       Filename:  sht20.c
+ *    Description:  This file is temperature and relative humidity sensor SHT20 code
+ *
+ *        Version:  1.0.0(10/08/23)
+ *         Author:  Guo Wenxue <guowenxue@gmail.com>
+ *      ChangeLog:  1, Release initial version on "10/08/23 17:52:00"
+ *
+ * Pin connection:
+ *               STH20 Module            Raspberry Pi Board
+ *                   VCC      <----->      #Pin1(3.3V)
+ *                   SDA      <----->      #Pin3(SDA, BCM GPIO2)
+ *                   SCL      <----->      #Pin5(SCL, BCM GPIO3)
+ *                   GND      <----->      GND
+ *
+ * /boot/config.txt:
+ *                  dtoverlay=i2c1,pins_2_3
+ *
+ ********************************************************************************/
+
+
+#ifndef  _SHT20_H_
+#define  _SHT20_H_
+
+#define SHT20_I2CDEV           "/dev/i2c-1"
+#define SHT20_I2CADDR          0x40
+
+extern int sht2x_get_temp_humidity(float *temp, float *rh);
+
+#endif   /* ----- #ifndef _SHT20_H_  ----- */
+

--
Gitblit v1.9.1