Multifunctional Digital Temperature Sensor Module LM393 (KY-028) [S021] 



https://www.youtube.com/watch?v=dIdtgqyE4Dk


*GitHub https://github.com/rdiot/rdiot-s021.git


* Specs

Material: FR4

Length: 43mm

Width: 15mm

Height: 14mm

Weight: 2.9g

Operating Voltage: 5V DC


* Content

- Connect

A0 - A0

G - GND

+ - 5V

D0 - X


- Key Code

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;

  return Temp;

}



Posted by RDIoT
|