Smart Home Automation Forum
[Arduino source code for KC868-1U]-01_DS18B20 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-1U (https://www.kincony.com/forum/forumdisplay.php?fid=52)
+--- Thread: [Arduino source code for KC868-1U]-01_DS18B20 (/showthread.php?tid=3004)



[Arduino source code for KC868-1U]-01_DS18B20 - KinCony Support - 06-21-2023

[Arduino source code for KC868-1U]-01_DS18B20
Code:
#include <DS18B20.h>

DS18B20 ds1(14); 
void setup() {
  Serial.begin(115200);

}
void loop() {
      Serial.printf("Tem1 is %.2f C \n ",ds1.getTempC());
}