03-02-2023, 06:46 AM
Code:
#include <DS18B20.h>
DS18B20 ds1(33);
DS18B20 ds2(14);
void setup() {
Serial.begin(115200);
}
void loop() {
Serial.print("Temperature1 is ");
Serial.print(ds1.getTempC());
Serial.println(" C");
delay(500);
Serial.print("Temperature2 is ");
Serial.print(ds2.getTempC());
Serial.println(" C");
delay(500);
}