KY-013 ANALOG TEMPERATURE SENSOR MODULE - RoboticX
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
Arduino 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);| 12345678910111213141516171819 | intThermistorPin=A0;intVo;floatR1=10000;// value of R1 on boardfloatlogR2,R2,T;floatc1=0.001129148,c2=0.000234125,c3=0.0000000876741;//steinhart-hart coeficients for thermistorvoidsetup(){Serial.begin(9600);}voidloop(){Vo=analogRead(ThermistorPin);R2=R1*(1023.0/(float)Vo-1.0);//calculate resistance on thermistorlogR2=log(R2);T=(1.0/(c1+c2*logR2+c3*logR2*logR2*logR2));// temperature in KelvinT=T-273.15;//convert Kelvin to Celcius// T = (T * 9.0)/ 5.0 + 32.0; //convert Celcius to FarenheitSerial.print(“Temperature: ”);Serial.print(T);Serial.println(“ C”);delay(500); |
DOWNLOADS
- Fritzing Part: KY-013 Analog temperature sensor module.
- Fritzing Official Site.
Tag » Arduino Ky-013 Temperature Sensor Module
-
KY-013 Analog Temperature Sensor Module - ArduinoModulesInfo
-
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 For Arduino - AliExpress
-
5Pcs New KY 013 Temperature Sensor Module The ARDUINO AVR ...