The Xh-W3001 is a digital temperature and humidity sensor module designed for accurate environmental monitoring. It features a compact design and is widely used in applications such as weather stations, HVAC systems, agricultural monitoring, and industrial automation. Its ease of use and reliable performance make it a popular choice for both hobbyists and professionals.
The Xh-W3001 module is designed to provide precise temperature and humidity readings. Below are its key technical details:
The Xh-W3001 module typically has the following connections:
Pin Name | Description |
---|---|
AC IN | Input for 110V AC power (for AC-powered models) |
DC IN | Input for 12V DC power (for DC-powered models) |
NO | Normally Open relay terminal for controlling external devices |
COM | Common terminal for the relay |
NC | Normally Closed relay terminal for controlling external devices |
Sensor | Connection for the external temperature and humidity probe |
Note: Ensure you are using the correct power input (AC or DC) based on your module version.
The Xh-W3001 is straightforward to use in a variety of applications. Follow the steps below to integrate it into your project:
Power Connection:
Sensor Connection:
Relay Connection:
Set Temperature and Humidity Thresholds:
The Xh-W3001 can be used with an Arduino UNO for advanced control and monitoring. Below is an example of how to read the relay state and control it programmatically:
// Define the relay pin connected to the Xh-W3001 module
const int relayPin = 7;
void setup() {
// Initialize the serial communication for debugging
Serial.begin(9600);
// Set the relay pin as an input to monitor its state
pinMode(relayPin, INPUT);
}
void loop() {
// Read the state of the relay (HIGH = activated, LOW = deactivated)
int relayState = digitalRead(relayPin);
// Print the relay state to the Serial Monitor
if (relayState == HIGH) {
Serial.println("Relay is ON (Device is active)");
} else {
Serial.println("Relay is OFF (Device is inactive)");
}
// Add a small delay to avoid flooding the Serial Monitor
delay(500);
}
Note: The relay pin should be connected to the Arduino's digital input pin. Ensure proper voltage level matching between the Arduino and the Xh-W3001.
Module Not Powering On:
Incorrect Temperature or Humidity Readings:
Relay Not Activating:
Display Not Working:
Q1: Can I use the Xh-W3001 with a 24V DC power supply?
A1: No, the Xh-W3001 is designed for either 12V DC or 110V AC power, depending on the model. Using a 24V DC supply may damage the module.
Q2: Is the external probe replaceable?
A2: Yes, the external probe can be replaced if it becomes damaged. Ensure the replacement probe is compatible with the Xh-W3001.
Q3: Can the module control both heating and cooling devices simultaneously?
A3: No, the module can control only one device at a time through its relay. You can configure it for either heating or cooling, but not both simultaneously.
Q4: How do I reset the module to factory settings?
A4: Refer to the module's user manual for specific instructions on resetting to factory defaults. Typically, this involves holding down a button for a few seconds.
By following this documentation, you can effectively use the Xh-W3001 module for your temperature and humidity monitoring needs.