Current location::Home > Products

KY-013

  • Product description
  • Applications
  • Features
  • Pictures
  • Accessories
  • Download

This module is based on the working principle of the thermistor (resistance value changes with the ambient temperature). It can know the change of the surrounding environment temperature in real time. We send the data to the analog IO, and then we can convert the sensor output through simple programming. Data and display of temperature in degrees Celsius, it is easy to use and effective, so it is widely used in gardening, home alarm system and other equipment. It is the same as a general temperature sensor. It is a three-wire package. When we use the power cord to connect the OK signal to the end of the line, since the module output is an analog signal, we have to connect the signal output terminal to the analog IO during sampling. In order to read the temperature value correctly.

Test code:
Double thermos (int RawADC)
Double temperature;
Temp = log(((10240000 / RawADC)-10000));
Temperature = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * temperature * temperature)) * temperature);
Temp = Temp-273.15; //Convert Kelvin to Celcius
Return temperature;
Invalid setting
Serial.begin(9600);
Invalid loop
Serial.print (Thermistor (analogRead(0)));