D1 Mini with DS18B20

D1 Mini with DS18B20

D1 Mini with DS18B20
Save Image

Compact temperature monitoring using D1 Mini and DS18B20 sensor.

Key Features

  • Small form factor
  • Accurate readings
  • 1-wire communication

Instructions

1. Connect DS18B20 (Data to D4, 4.7k pull-up resistor).
2. Install OneWire library.
3. Upload the code.

Schematic

Schematic Download Schematic

Code Snippet

sensors.requestTemperatures();
float temp = sensors.getTempCByIndex(0);
Serial.println(temp);
Download Full Code
Back to Projects