The Sensiron SHT/SHW is fully calibrated and provide a digital and analog output with an advance series of digital humidity and temperature sensor design for long term stability and high end applications such as mobile, navigation system, environmental, automotive, industrial and home automations.
The SHT3X
The SHT3X is a newly launch next generation of temperature and humidity sensor from Sensirions, designed in a new CMOSense core. The SHT3X has added a new intelligence platform for reliability and improved the sensing accuracy specification compared to its predecessor. The functionality includes enhance signal processing, 2 distinctive and user selectable i2C address with the communication speed of up to 1 MHz. This device driven on 2.4v to 5.5v guarantees compatibility on a assembly situations. For more reading and address selection please refer to the datasheet below.
The SHTCX
The SHTC1 is designed to overcome the limit of size, power consumption, and performance. The Sensirions’s CMOSense technology offers a complete sensor system on a single chip consisting of a capacitive humidity sensor, a bandgap temperature sensor, analog and digital signal processing A/D converter, calibration data memory and a digital communication interface that communicate with fast mode i2C protocol. This sensor convers humidity measurement range of 0 to 100% RH and a temperature measurement’s range of -30 degree Celsius to 100 degree Celsius with accuracy of +- 0.3 degree Celsius. This device is runs on 1.8v and energy budget below 1 μJ per measurement make that make this device suitable for mobile or wireless applications running on a tightest power consumption. . For more reading please refer to the datasheet below.
The SHWTX
This device is flip chip package digital humidity and temperature sensor. This type of package is ultra-small sensor which are suitable for application with the tightest space constraints with impressive pure simplicity. This sensor is based on Sensirion’s CMOSense technology that offers a complete system on a single chip consisting a capacitive humidity sensor, bandgap temperature sensor, analog and digital signal processing, Analog to Digital converter, calibration data memory and i2c data communication protocol interface at fast mode. For more reading please refer to the datasheet below.
Required Component
- Python 2.7 | Python 3.6
- MicroPython, Raspberry Pi, Intel Joulo, Pico I, Intel Edison, ESP32, Pycom (Flashing ESP8266/ESP32 Please refer to this link) /(please refer to each MCU’s respective pin-outs & bus configurations)
- SHT3X, SHTCX, SHWTX Temperature Sensor
- Capacitors (See below required values)
- Resistors (See below required values)
- Simulator / PCB Designer (Circuit simulation to PCB Layout)
Wiring Guide
Python Source Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
from time import sleep import RPi.GPIO as GPIO from PI_SHT1X import SHT1X DATA_PIN = 3 //i2C Pin Configuration SCK_PIN = 5 ///i2C Pin Configuration def main(): print('Test: using default values: 3.5V, High resolution, no heater, otp_no_reload off, CRC checking enabled...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Test complete.\n') print('Test: reading all measurements using GPIO.BCM mode, 3V, High resolution, heater off, otp_no_reload off, ' 'and CRC check on.') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, vdd='3.5V', resolution='High', heater=False, otp_no_reload=False, crc_check=True) as sensor: for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Test complete.\n') print('Test: read humidity without providing the temperature as an argument...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: for i in range(5): sensor.read_humidity() print('Temperature: {0}*C [{1}*F]\nHumidity: {2}'.format(sensor.temperature_celsius, sensor.temperature_fahrenheit, sensor.humidity)) sleep(2) print('Test complete.\n') print('Test: calculate dew point without providing temperature and humidity as arguments...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: for i in range(5): sensor.calculate_dew_point() print(sensor) sleep(2) print('Test complete.\n') print('Test: turn otp_no_reload on...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, otp_no_reload=True) as sensor: for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Test complete.\n') print('Test: use low resolution...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, resolution='Low') as sensor: for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Test complete.\n') print('Test: change resolution after object creation...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: print('High resolution...') for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Complete.\n') sensor.resolution = SHT1X.RESOLUTION['Low'] print('Low resolution...') for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Test complete.\n') print('Test: Read the Status Register (default)...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: status_register = sensor.read_status_register() print('Status Register: {0:08b}'.format(status_register)) print('Test complete.\n') print('Test: Read the Status Register (low resolution, otp_no_reload on)...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, resolution='Low', otp_no_reload=True) as sensor: status_register = sensor.read_status_register() print('Status Register: {0:08b}'.format(status_register)) print('Test complete.\n') print('Test: resetting the connection to the sensor...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM) as sensor: sensor.reset_connection() sensor.read_temperature() print('Temperature: {0}*C [{1}*F]'.format(sensor.temperature_celsius, sensor.temperature_fahrenheit)) print('Test complete.\n') print('Test: performing a soft reset of the sensor...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, otp_no_reload=True) as sensor: sensor.soft_reset() status_register = sensor.read_status_register() print('Status Register: {0:08b}'.format(status_register)) sensor.read_temperature() print('Temperature: {0}*C [{1}*F]'.format(sensor.temperature_celsius, sensor.temperature_fahrenheit)) print('Test complete.\n') print('Test: resetting the status register...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, otp_no_reload=True) as sensor: sensor.reset_status_register() status_register = sensor.read_status_register() print('Status Register: {0:08b}'.format(status_register)) sensor.read_temperature() print('Temperature: {0}*C [{1}*F]'.format(sensor.temperature_celsius, sensor.temperature_fahrenheit)) print('Test complete.\n') print('Test: CRC disabled...') with SHT1X(DATA_PIN, SCK_PIN, gpio_mode=GPIO.BCM, vdd='3.5V', resolution='High', heater=False, otp_no_reload=False, crc_check=False) as sensor: for i in range(5): temp = sensor.read_temperature() humidity = sensor.read_humidity(temp) sensor.calculate_dew_point(temp, humidity) print(sensor) sleep(2) print('Test complete.\n') if __name__ == "__main__": main() |
Downloads
- Download SHWT Datasheet
- Download SHTX Datasheet
- Download SHT3X Datasheet
- Download SHT Python Code Library