Connect ESP3266 to sensor

Connecting this ESP3266 to a temperature sensor is easy. All you need to do is a datasheet.

We will use DS18b20 temperature sensor. There are 3 pins for this sensor which are GND (Ground), VCC (Voltage Common Collector), and SIG (Signal).

VCC (Green), GND (Red), and SIG (Yellow)

How we connect the sensor to ESP3266:

  • GND (Red): To "G" pin of ESP3266

  • VCC (Green): to 3V pin of ESP3266

  • SIG (Yellow): to D4 pin of ESP3266

Oh, don't forget a resistor (330 ohms) between a 3V pin and D4 pin.

Last updated

Was this helpful?