ESPHome DIY sensors - Best Buy Tips
Introduction
If you want to create your own sensors with ESPHome you need an ESP development board where you can load the software to read the sensors and send this data over the network to your home server.
If you’re afraid to solder some pins or connect the ESP to the sensor, look for some tutorials and give it a try.
You can also look for ESPs and sensors with already pins, then with dupont cables you don’t need to soldering at all.
Here you find some useful links where you can buy ESPs,
sensors and other tooling which can be useful for making your own DIY sensors.
I have a page where I added manuals to create your own sensors.
Table of Contents
NOTE 1: Most links on this page are hardware I also bought myself.
Most of the links are affiliate links, You pay the normal price and also support my blog by buying it from here.
ESP board
The brains of your own sensor.
It contains the processor to run the program on, and with the WiFi module on it which can make contact with your own network.
ESP8266 vs ESP32
The two most used ESP families are the ESP8266 and the ESP32. Both are supported by ESPHome.
| |
ESP8266 |
ESP32 |
| Processor |
Single-core, 80/160 MHz |
Dual-core up to 240 MHz (the C3 is single-core) |
| Memory |
About 80 KB RAM |
About 520 KB RAM (the C3 has 400 KB) |
| Connectivity |
WiFi |
WiFi and Bluetooth |
| Price |
Cheapest |
A bit more expensive |
Go for the ESP8266 if you build a simple sensor with one or two sensors, like a temperature sensor or a CO2 sensor. It is cheap and fast enough.
Go for the ESP32 if:
- You need Bluetooth, for example to use it as a Bluetooth proxy for Home Assistant.
- You want to connect more sensors, a display or other devices, and need more pins.
- You have a bigger or more complex configuration, which needs more memory and speed.
- You want a newer board with USB-C. New ESPHome features are mostly built for the ESP32.
If you’re not sure, choose an ESP32. The small price difference gives you more room to grow.
ESP32ESP32-C3 supermini
A really tiny ESP32 with bluetooth.
AliExpress
ESP32ESP-32S WROOM
The newer and faster ESP32 board has a dual-core processor, bluetooth, usb-c and already soldered pins.
AliExpress
ESP8266ESP8266 NodeMCU v3
The original ESP developer board (or comparable) and in most cases fast enough to handle the sensor data.
AliExpress
ESP8266ESP D1 mini
This ESP D1 mini is also an ESP8266 variant (don't use the pro or V3). You can use any ESP chip, but I like this one because of its small size. The pins are not soldered on the board yet (with some practice even you can do it for sure!).
AliExpress
Sensors
Sensors are the digital senses. They can measure all different kinds of units, like temperature, humidity, light intensity, pressure, etc.
Here are some ready-to-use sensors that can be connected direct to an ESP without a challenging circuit with resistors and capacitors, etc.
Temperature and humidity sensorDHT11
Dht11 is a commonly used temperature and humidity sensor.
AliExpress
CO2 sensorSenseAir S8 CO2 sensor
A basic CO2 sensor (CO2 is measured in parts per million, ppm) which can be used to make your own CO2 sensor. Check this page how to create this.
AliExpress 1 | AliExpress 2
CO2 sensor - SCD41SCD41 without soldering
SCD40 or SCD41 are compact CO2, humidity and temperature sensors. The 41 has some higher accuracy and can measure higher ppm values (2000 vs 5000). Comes with an I2C cable, so no soldering is required. Check this page how to make your own CO2 sensor.
AliExpress
CO2 sensor - SCD41SCD41 with soldering
The same sensor, but it requires soldering.
AliExpress
Pressure sensorPressure sensor - largest version
This car seat sensor measures if there is pressure on a chair or seat. The output is just an open or a closed circuit. You can directly attach it to a contact-/water leak sensor.
AliExpress
Pressure sensorPressure sensor - big version
AliExpress
Weight sensorHX711 weight sensor
The HX711 Module comes with four pressure sensors which you can place under your bed to measure the pressure to see how many people are a.t.m. in the bed.
AliExpress
Rain gauge sensorRain gauge
Can be used, together with a contact sensor, to create your own rain gauge sensor.
AliExpress
Waterproof temperature sensorDS18B20 water temperature sensor
The DS18B20 sensor is one to measure temperature in wet areas like an aquarium, for example.
AliExpress
Occupancy sensor (mmWave)HLK-2410C
A 24GHz occupancy sensor (a.k.a. millimeter wave sensor).
AliExpress
Presence sensor (microwave)RCWL-0516
A presence sensor (a.k.a. micrometer sensor). Check this page how to make your own presence detection sensor with this sensor.
AliExpress
Cables and power
Cables and power adapters to power your ESP.
Micro USB power cableMicro USB cable
USB-A to micro USB cable to power the ESP8266.
AliExpress
USB-C power cableUSB-C cable
USB-A to USB-C cable to power the ESP32.
AliExpress
5V USB adapter5V USB EU power adapter, fast charging
To power multiple usb devices, with fast charging and 3.1A.
AliExpress
Christmas light adapterChristmas light adapter
A 2 pins adapter without a button to select a mode, just on, for Christmas lights, 31V and 3.6W.
AliExpress
USB hubActive powered USB hub
Active USB hub to power multiple USB devices.
AliExpress
Connecting and mounting
Everything to connect the ESP with the sensors.
DupontDupont wires
Dupont are cables to connect the ESP pins with sensors pins, in different variants: male to male, female to male and male to female. You can also cut one end to just solder it direct to the connector. Better order all three types at once, also for any further projects.
AliExpress 1 | AliExpress 2
Cable connectorsCable connectors - option 1
Connect two wires without soldering.
AliExpress
Cable connectorsCable connectors - option 2
Connect two wires without soldering.
AliExpress
Pin headsPin head female
Pin heads to use dupont cables to connect the ESP with sensor. Only required if they are not already provided.
AliExpress
Pin headsPin head male
Pin heads to use dupont cables to connect the ESP with sensor. Only required if they are not already provided.
AliExpress
Boxes
A box protects the ESP board and the sensor, and makes your DIY sensor easy to place.
Pick a waterproof one if the sensor is used outside or in a damp room.
BoxesPlastic boxes in all kind of sizes
Plastic DIY Case to fix the esp board and sensor in.
AliExpress
Boxes (waterproof)Waterproof boxes in all kind of sizes
Plastic DIY Case to fix the esp board and sensor in.
AliExpress
Some of the DIY sensors need soldering. These are the tools I use for it, and a breadboard to test your setup first.
Soldering ironSoldering iron
I suggest this based on the reviews. I already had one. Please let me know if you advise this one or not?
AliExpress
Soldering kitSoldering kit
A complete set with a soldering iron, extra tips, solder wire, a stand, a desoldering pump and a carrying case.
AliExpress
Soldering tin wireSoldering tin wire
The tin wire you melt to make the connections.
AliExpress
DesolderingDesoldering
A desoldering pump to remove solder when you made a mistake.
AliExpress
BreadboardBreadboard
A breadboard with dupont cables and power connector to test your setup first.
AliExpress
Helping handHelping hand
This helping hand can be used to hold the ESP board and sensor while soldering.
AliExpress
Other hardware
Some extra hardware which is useful for other DIY projects around your smart home.
RTL-SDR Radio sniffer for 433 and 868 MHzRTL-SDR radio sniffer
This receiver can be used to receive or sniff signals send by device which uses the 433 or 868 MHz bandwidth.
AliExpress
P1 cable for smart gas and energy meterP1 smart meter cable
With this cable, you can read your smart meter to read the gas and energy consumption.
AliExpress
Internal links
Links to other sections of this blog:
^^ Top | Homepage | Best Buy Tips | Automation Ideas | Blog posts | Sitemap