

The Thermostat Temperature Switch is a device designed to regulate temperature by automatically switching heating or cooling systems on or off based on a predefined temperature setting. It is widely used in HVAC systems, home appliances, industrial equipment, and temperature-sensitive environments. This component ensures energy efficiency and maintains optimal temperature conditions.








Below is a typical pinout for a Thermostat Temperature Switch with a relay output:
| Pin | Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (e.g., 12V DC or 24V AC). |
| 2 | GND | Ground connection. |
| 3 | TEMP_SENSOR | Input for an external temperature sensor (if applicable). |
| 4 | RELAY_NO | Normally Open (NO) relay output for controlling external devices. |
| 5 | RELAY_NC | Normally Closed (NC) relay output for controlling external devices. |
| 6 | RELAY_COM | Common terminal for the relay. |
Note: Pin configurations may vary depending on the specific model. Always refer to the manufacturer's datasheet for exact details.
Below is an example of how to use the Thermostat Temperature Switch with an Arduino UNO to monitor temperature and control a fan:
// Example code to monitor temperature and control a fan using a thermostat switch
const int relayPin = 7; // Pin connected to the relay control
const int tempSensorPin = A0; // Analog pin for external temperature sensor (if used)
void setup() {
pinMode(relayPin, OUTPUT); // Set relay pin as output
digitalWrite(relayPin, LOW); // Ensure relay is off initially
Serial.begin(9600); // Initialize serial communication for debugging
}
void loop() {
int tempReading = analogRead(tempSensorPin); // Read temperature sensor value
float voltage = tempReading * (5.0 / 1023.0); // Convert to voltage
float temperature = (voltage - 0.5) * 100.0; // Convert to Celsius (example for LM35 sensor)
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
// Example logic: Turn on fan if temperature exceeds 30°C
if (temperature > 30.0) {
digitalWrite(relayPin, HIGH); // Activate relay
} else {
digitalWrite(relayPin, LOW); // Deactivate relay
}
delay(1000); // Wait 1 second before next reading
}
Note: Modify the code as needed based on the specific temperature sensor and application.
Relay Not Switching:
Inaccurate Temperature Readings:
Frequent Switching:
No Output from Relay:
Q: Can I use the thermostat with a 220V AC load?
A: Yes, but ensure the relay's voltage and current ratings are suitable for the load. Use proper isolation and safety precautions.
Q: How do I adjust the temperature setpoint?
A: Most thermostats have an onboard potentiometer or digital interface for adjusting the setpoint. Refer to the specific model's manual for instructions.
Q: Can I use the thermostat without an external sensor?
A: Yes, if the thermostat has a built-in sensor. For models requiring an external sensor, one must be connected.
Q: What is hysteresis, and why is it important?
A: Hysteresis is the difference between the temperature at which the relay turns on and off. It prevents frequent switching, which can damage the relay or connected devices.