The KY-035 is a temperature sensor module manufactured by Sensor, with the part ID "Analog Hall." It is based on the LM35 temperature sensor, which provides an analog output directly proportional to the temperature in degrees Celsius. This module is widely used in temperature monitoring and control applications due to its high accuracy, linear output, and ease of interfacing with microcontrollers and other electronic systems.
The KY-035 module is designed for simplicity and reliability. Below are its key technical details:
The KY-035 module has three pins for easy interfacing. The table below describes each pin:
Pin | Name | Description |
---|---|---|
1 | VCC | Power supply input (4V to 30V DC). Connect to the positive terminal of the power source. |
2 | GND | Ground. Connect to the negative terminal of the power source. |
3 | OUT | Analog output. Provides a voltage proportional to the measured temperature. |
The KY-035 module is straightforward to use in a circuit. Follow the steps below to integrate it into your project:
Below is an example of how to connect and read data from the KY-035 module using an Arduino UNO:
// KY-035 Temperature Sensor Example with Arduino UNO
// Reads the analog output from the KY-035 and calculates the temperature in °C.
const int sensorPin = A0; // KY-035 OUT pin connected to Arduino A0
float temperature; // Variable to store the calculated temperature
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
}
void loop() {
int sensorValue = analogRead(sensorPin); // Read the analog value (0-1023)
// Convert the analog value to voltage (assuming 5V reference voltage)
float voltage = sensorValue * (5.0 / 1023.0);
// Calculate the temperature in °C (10 mV/°C scale factor)
temperature = voltage * 100.0;
// Print the temperature to the Serial Monitor
Serial.print("Temperature: ");
Serial.print(temperature);
Serial.println(" °C");
delay(1000); // Wait for 1 second before the next reading
}
No Output or Incorrect Readings
Fluctuating or Noisy Readings
Output Voltage Does Not Match Expected Temperature
Sensor Overheating
Q1: Can the KY-035 be used with a 3.3V microcontroller?
A1: Yes, the KY-035 can operate with a power supply as low as 4V. However, for accurate readings, ensure the output voltage is within the ADC range of your microcontroller.
Q2: How do I measure negative temperatures with the KY-035?
A2: The LM35 sensor outputs a positive voltage even for negative temperatures. To measure negative temperatures, use a dual-supply configuration or a microcontroller capable of interpreting the offset.
Q3: Can I use the KY-035 for high-precision applications?
A3: The KY-035 is suitable for general-purpose applications. For high-precision requirements, consider additional calibration or using a more advanced temperature sensor.
Q4: Is the KY-035 waterproof?
A4: No, the KY-035 is not waterproof. For outdoor or wet environments, use a waterproof enclosure or a sensor designed for such conditions.