KY-013 Temperature Sensor Main

KY-013 Temperature Sensor

20.00 EGP

This module is suitable for Arduino, Raspberry Pi and similar Microcontrollers. The module is based on the thermistor (resistance increases with the ambient temperature changes) to sense the temperature of the surrounding environment changes.

Out of stock


SKU: KY-013 Category: Tags: , , , , , , , , , , , ,
Join Waitlist

Product Description

KY-013 Temperature Sensor data is sent to the Arduino analog IO, then through the programming will be able to convert the sensor output data Celsius temperature values and displayed, it is easy to use, and effective, thereby widely used in gardening, home automation systems and other devices.

KY-013 Temperature Sensor Specifications

  • The temperature sensor is a NTC thermistor
  • Multi-point temperature measurement Measures temperatures: -55°C / +125°C
  • Accuracy: + / – 0.5°C

Required Hardware devices

You must have the below devices to measure the temperature:

  • Arduino controller × 1
  • USB data cable × 1
  • the analog temperature sensor module × 1

Schematic

  • Arduino pin analoog IO –> module S (Signal)
  • Arduino pin GND –> module -ve
  • Arduino pin 5+ –> module middel pin 5V

Code

#include <math.h>
 
int sensorPin = A5; // select the input pin for the potentiometer
 
double Thermistor(int RawADC) {
  double Temp;
  Temp = log(10000.0*((1024.0/RawADC-1))); 
  Temp = 1 / (0.001129148 + (0.000234125 + (0.0000000876741 * Temp * Temp ))* Temp );
  Temp = Temp - 273.15;            // Convert Kelvin to Celcius
   //Temp = (Temp * 9.0)/ 5.0 + 32.0; // Convert Celcius to Fahrenheit
   return Temp;
}
 
void setup() {
 Serial.begin(9600);
}
 
void loop() {
 int readVal=analogRead(sensorPin);
 double temp =  Thermistor(readVal);
 
 Serial.println(temp);  // display tempature
 //Serial.println(readVal);  // display tempature
 
 delay(500);
}

Additional Information

Weight5 g

Reviews

There are no reviews yet.

Be the first to review “KY-013 Temperature Sensor”

Your email address will not be published. Required fields are marked *