KY-013 Analog Temperature Sensor Module - ArduinoModulesInfo
Maybe your like
The KY-013 Analog Temperature Sensor module can measure ambient temperature based on the resistance of the thermistor on the board.
Compatible with popular electronics platforms like Arduino and ESP32.


KY-013 Specifications
This module consist of a NTC thermistor, a 10 kΩ resistor, and 3 male header pins. The thermistor resistance varies according to its surrounding temperature. The value of resistance can be used to calculate the actual temperature.
| Operating Voltage | 5V |
| Temperature measurement range | -55°C to 125°C [-67°F to 257°F] |
| Measurement Accuracy | ±0.5°C |
Connection Diagram
Connect module power line (middle) and ground (-) to 5V and GND on the Arduino respectively. Connect the module signal pin (S) to pin A0 on the Arduino.
Some KY-013 have a different pin arrangement. Please check your board before connecting.
| KY-013 | Arduino |
|---|---|
| S | A0 |
| middle | 5V |
| – | GND |

KY-013 Arduino Code
The following Arduino Sketch will derive the temperature from the thermistor using the Steinhart-Hart equation. The code will return temperature in Celcius, uncomment line 17 to get temperature in farenheit.
int ThermistorPin = A0; int Vo; float R1 = 10000; // value of R1 on board float logR2, R2, T; float c1 = 0.001129148, c2 = 0.000234125, c3 = 0.0000000876741; //steinhart-hart coeficients for thermistor void setup() { Serial.begin(9600); } void loop() { Vo = analogRead(ThermistorPin); R2 = R1 * (1023.0 / (float)Vo - 1.0); //calculate resistance on thermistor logR2 = log(R2); T = (1.0 / (c1 + c2*logR2 + c3*logR2*logR2*logR2)); // temperature in Kelvin T = T - 273.15; //convert Kelvin to Celcius // T = (T * 9.0)/ 5.0 + 32.0; //convert Celcius to Farenheit Serial.print("Temperature: "); Serial.print(T); Serial.println(" C"); delay(500); }Downloads
- Fritzing Part: KY-013 Analog temperature sensor module.
- Fritzing Official Site.
Leave a Comment Cancel reply
Comment
Name Email20 thoughts on “KY-013 Analog Temperature Sensor Module”
Comment navigation
← Older Comments-
The expression for calculating R2 is wrong (at least with my module). It should be like this:
R2 = R1*Vo/(1023-Vo);
Otherwise, I found the article helpful, thanks.
Reply-
gut, danke
Reply
-
-
GRAZIE !
Reply -
On an ebay version of this module I had the sensor and ground pins reversed.
Reply
Comment navigation
← Older Comments Search for:Recent Comments
- Frank Allen on KY-028 Digital Temperature Sensor Module
- joe on KY-035 Analog Hall Magnetic Sensor Module
- Job Tielens on KY-024 Linear Magnetic Hall module
- Job Tielens on KY-035 Analog Hall Magnetic Sensor Fritzing part
- Emma on KY-020 Tilt Switch Module
Tag » Arduino Ky-013 Temperature Sensor Module
-
KY-013 Capteur De Température CTN - SensorKit X40
-
[PDF] KY-013 Temperature-Sensor Module - GeeksValley
-
Arduino KY-013 Temperature Sensor Module
-
Using The Temperature Sensor Module KY-013 With Arduino
-
[PDF] KY-013 Analog Temperature Sensor Module - Energia Zero
-
KY-013 Analog Temperature Sensor Module For Arduino - RS975
-
KY-013 Temperature Sensor Module By Herrerodani - Codebender
-
[SOLVED]KY-013 Analog Temperature Sensor Incorrect Readings.
-
KY-013 - Temperature Sensor Module - YouTube
-
Analog-Temperature Sensor Module - Autobotic Sdn Bhd
-
KY-013 Analog Temperature Sensor Module Buy Online At Low ...
-
KY-013 ANALOG TEMPERATURE SENSOR MODULE - RoboticX
-
KY 013 Analog Temperature Sensor Module For Arduino - AliExpress
-
5Pcs New KY 013 Temperature Sensor Module The ARDUINO AVR ...