Code:
#include <DS18B20.h>
DS18B20 ds1(15); //channel-1-DS18b20
void setup()
{
Serial.begin(115200);
}
void loop()
{
Serial.print("Temperature1:");
Serial.print(ds1.getTempC());
Serial.print(" C /");
delay(500);
}
A24 arduino demo source code-05-read DS18B20 temperature sensor
|
« Next Oldest | Next Newest »
|
Users browsing this thread: |