A greenhouse controller
The relay closes when the DS18B20 passes 28 °C; an ultrasonic sensor measures distance too.
buttonds18b20hc_sr04ledrelay_1chssd1306_i2c
Sensor
ds18b201-Wire
Why this support circuit is added
Digital temperature sensor, common as a waterproof probe.
Grounded in the catalog and golden patterns (real open-source circuits). Every auto-inserted part comes with a reason.
Using this part in a project adds the circuit below, each element with its reason.
1-Wire is open-drain; without the 4.7 kΩ pull-up there is no communication (datasheet figure).
Any of these #includes identifies this part
#include <OneWire.h> #include <DallasTemperature.h>
Run them in the browser, no login needed.
The relay closes when the DS18B20 passes 28 °C; an ultrasonic sensor measures distance too.