This video demonstrates how to build a compact temperature and humidity sensor using an ESP32-C3 Pro Mini board and HTU21D sensor, featuring automatic integration with Home Assistant via MQTT without requiring YAML configuration, and optional data logging to ThingSpeak cloud platform.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
30 minute DIY ESP32 temperature and humidity sensor for Home Assistant Autodiscovery and ThingSpeakAdded:
Let's make a smart temperature and humidity sensor that integrates automatically with Home Assistant and ThingSpeak.
And you can build it in just half an hour.
We start by printing the enclosure. Just drag and drop the STL files in your slicer.
Then we move the top part and then we rotate it 180° along the Z axis.
It's also important to not have supports enabled.
And then we just check that everything is okay and we send it to the printer.
Moving down onto the electronics, we use only two parts connected by four wires.
The parts are ESP32-C3 Pro Mini board and an HTU21D sensor.
We start by cutting the wires. We need four wires, two wires of 3.5 cm and two wires of 4 cm.
Let's remove the wire insulation from the ends of the wires and tin them so that the final assembly will be easier.
We remove the boards from their packaging bags and start soldering the wires. You can find in the video description links to the specific parts I used. Let's solder the wires on the ESP board according to the schematic.
For perfect solder joints, I really recommend using flux.
Now that we have the wires attached to the ESP32 board, we'll also solder them to the sensor board.
Having all wires soldered, we just twist them several times.
Electronics is done now, so we can just connect it to the USB to our computer.
In order to flash the firmware, we need to use Chrome or Edge. We go to github.com/linemcu and select the temperature and humidity sensor repo.
In the readme, there is a link to the web flash page. We click on it, click on connect and flash, and then we select USB JTAG serial debug unit.
Then we click on install Lin MCU TH sensor, next, and install.
Now, the firmware is installed on our sensor.
The last step is to configure the sensor. We enter config mode by resetting the board and then quickly pressing the boot button until the blue LED starts flashing.
At this point, the sensor created an access point to which we can connect.
Normally, it opens automatically a web browser pointing to the setup page. If this does not happen, enter in your browser http://192.168.4.1.
From the settings page, we choose configure Wi-Fi and we set the Wi-Fi credentials, the parameters, and the Home Assistant and ThingSpeak variables.
Then, we click save.
And if the Wi-Fi credentials were correct, all settings are saved in the non-volatile storage.
And the grand finale is here. After configuration, the chip will reset and will automatically show up in Home Assistant. No YAML or any other configuration required. You only need the MQTT integration installed.
The sensor showed up in the list of MQTT devices and the overview.
If you want to use ThingSpeak, you need to create a channel and enable the first three fields being temperature, humidity, and RSSI.
You will also need to provide the right API key of this channel in your sensor settings.
Then, you'll start seeing the data being recorded.
In the meantime, the enclosure was printed, so we can start the final assembly.
One last finishing touch, if you don't like to see the power LED, we can get rid of it using a precision knife. We slowly cut away pieces of the LED until we see the blue board beneath.
Subscribe to the channel if you want to see how you can build a very small smart motion sensor.
Related Videos
U.S. Military Just Flexed The Most Dangerous Aircraft Ever Built The F-47
MaxAfterburnerusa
11K views•2026-05-29
Heating Staying On On The Hottest Day Of The Year
PlumbLikeTom
507 views•2026-05-29
발전 효율을 높이는 태양광 추적 시스템의 기술적 원리 #공학 #공정 #태양광 #알고리즘 #재생에너지
찐현장기술
2K views•2026-05-29
Peterborough to Newark Northgate Driver's Eye View aboard an InterCity 225 - East Coast Main Line
TrainsTrainsTrains
822 views•2026-05-31
AI turbine design: hypersonic cooling leap #shorts #ai #hypersonic
bobbby_rn
671 views•2026-05-31
직관 및 곡관 배관 결합 고정 작업 #worker #process #fabrication #pipework #clamp
월드촌촌
2K views•2026-05-30
How Far Can A Tomahawk Missile Actually Travel?
WarCurious
13K views•2026-05-28
Wire To Wire Connection Trick | Strong And Secure Electrical Joint #shortvideo #wireworks
ElectricianTips-b1h
5K views•2026-06-02











