Smart Home Automation Forum

Full Version: [Arduino source code for KC868-1U]-01_DS18B20
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
[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());
}