The SHT1x-Breakout is a precision sensor module designed for environmental monitoring, which incorporates the Sensirion SHT1x sensor. This sensor is capable of measuring both temperature and relative humidity with high accuracy and provides a digital output for easy interfacing with microcontrollers and computers. Common applications include weather stations, HVAC control systems, and any application where environmental conditions need to be monitored.
Pin Number | Name | Description |
---|---|---|
1 | VDD | Power supply voltage (2.4V to 5.5V) |
2 | DATA | Serial data output/input |
3 | SCK | Serial clock input |
4 | GND | Ground |
To use the SHT1x-Breakout in a circuit, connect the VDD pin to a power supply within the specified range, the GND pin to the system ground, the DATA pin to a digital I/O pin on your microcontroller, and the SCK pin to another digital I/O pin for the serial clock.
#include <SHT1x.h>
// Specify data and clock connections and instantiate SHT1x object
#define dataPin 10
#define clockPin 11
SHT1x sht1x(dataPin, clockPin);
void setup()
{
Serial.begin(9600); // Start serial communication at 9600 baud
}
void loop()
{
float temp_c;
float humidity;
// Read values from the sensor
temp_c = sht1x.readTemperatureC();
humidity = sht1x.readHumidity();
// Print the values to the serial port
Serial.print("Temperature: ");
Serial.print(temp_c, DEC);
Serial.print("C / Humidity: ");
Serial.print(humidity);
Serial.println("%");
delay(2000); // Wait 2 seconds between readings
}
Ensure that you have installed the SHT1x
library in the Arduino IDE before uploading this code to your Arduino UNO.
Q: Can the SHT1x-Breakout be used outdoors? A: Yes, but it should be protected from direct exposure to water and sunlight.
Q: How long does the sensor need to acclimatize? A: Typically, a few minutes should be sufficient for the sensor to stabilize and provide accurate readings.
Q: Is calibration required for the SHT1x-Breakout? A: The sensor comes pre-calibrated from the factory. However, for critical applications, periodic calibration against a known reference may be necessary.
For further assistance, consult the Sensirion SHT1x datasheet or contact technical support.