Skip to content
Buy 10+ on select items — save 10% auto-applied
Free US shipping on orders $35+
Order by 3pm ET — ships same-day from the US
Skip to main content

ESP32 HX711: Beehive Weight and Climate Dashboard | ShillehTek

May 19, 2026 22 views

ESP32 HX711: Beehive Weight and Climate Dashboard | ShillehTek
Project

Build an ESP32 beehive monitor with HX711 weight sensing plus DS18B20 and DHT22 climate data, then view trends remotely on a Wi-Fi dashboard from ShillehTek.

3 hr Intermediate / Advanced6 parts

Project Overview

ESP32 + HX711 + DS18B20 + DHT22 beehive monitor: Build a Wi-Fi connected beehive monitor that tracks hive weight (honey yield), internal temperature, and humidity, then streams the readings to a phone-accessible dashboard.

The HX711 with a load cell measures hive weight in grams. The DS18B20 waterproof probe reads internal temperature. The DHT22 measures ambient temperature and humidity. The ESP32 sends everything over Wi-Fi for remote viewing.

  • Time: ~3 hours
  • Skill level: Intermediate / Advanced
  • What you will build: A solar-friendly beehive monitor logging weight, temperature, and humidity to a dashboard.
ESP32 beehive monitor installed on a hive cover with HX711 load cell, DS18B20 probe, and DHT22 sensor
HX711 + load cell + DS18B20 + DHT22 + ESP32 for remote beekeeping data.

Parts List

From ShillehTek

External

  • 50-100 kg strain-gauge load cell (4 half-bridge cells in a Wheatstone configuration) - supports the hive and provides the strain signal for the HX711.
  • 2 plywood platforms (one above, one below the cells) - creates a rigid sandwich so only vertical load reaches the cells.
  • Optional: 6V solar panel for permanent off-grid power.

Note: Load cells need to be mechanically isolated so only the hive's weight passes through them. Use rubber feet between everything.

Step-by-Step Guide

Step 1 - Set up the hive

Goal: Start with a stable hive placement before adding the scale and sensors.

What to do: Choose a level location in the apiary and confirm the hive sits solidly without rocking. You will add a scale platform underneath in the next step.

Langstroth beehive in an apiary before installing ESP32 sensors and load cell platform
Standard Langstroth hive to instrument.

Expected result: A stable hive location ready for the scale platform.

Step 2 - Build the scale platform

Goal: Create a mechanical platform that routes the hive weight through the load cells.

What to do: Mount four half-bridge load cells at the corners between two plywood platforms so the hive sits on the top platform and the bottom platform contacts the ground. Ensure the assembly is rigid and mechanically isolated.

Wire the 4 half-bridge cells into a single full-bridge Wheatstone configuration so you can read them with one HX711 module. Many beekeeper kits ship pre-wired.

Plywood scale platform under a beehive using four corner-mounted load cells wired for an HX711
Four load cells at the corners with a plywood sandwich above and below.

Expected result: A complete platform that can measure hive weight changes reliably.

Step 3 - Wire the electronics

Goal: Connect the HX711, DS18B20, and DHT22 to the ESP32 GPIO pins.

What to do: Assemble the ESP32 and sensors on your mounting board/enclosure. Wire the sensors as shown in the wiring diagram: HX711 to GPIO 16 and 17, DS18B20 to GPIO 4, and DHT22 to GPIO 5.

ESP32 development board connected to HX711 module, DS18B20 waterproof probe, and DHT22 sensor on a mounting board
ESP32 with three sensors: HX711, DS18B20, and DHT22.
Wiring diagram showing ESP32 connected to HX711 on GPIO 16 and 17, DS18B20 on GPIO 4, and DHT22 on GPIO 5
HX711 to GPIO 16/17, DS18B20 to GPIO 4, DHT22 to GPIO 5.

Expected result: All sensors are wired to the ESP32 and ready for firmware.

Step 4 - Upload the sketch

Goal: Read weight, internal temperature, ambient temperature, and humidity, then print the values to Serial (and optionally push to a server).

What to do: Compile and upload the following Arduino sketch to the ESP32. Update the Wi-Fi SSID and password, and calibrate the CAL value for your specific load cell setup.

Code:

#include <WiFi.h>
#include <HX711.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <DHT.h>
HX711 scale;
OneWire bus(4); DallasTemperature ds(&bus);
DHT dht(5, DHT22);
const float CAL = 420.0;   // calibrate this for your load cell
void setup() {
  Serial.begin(115200);
  WiFi.begin("SSID","PASS");
  scale.begin(16, 17); scale.set_scale(CAL); scale.tare();
  ds.begin(); dht.begin();
}
void loop() {
  float w = scale.get_units(10);
  ds.requestTemperatures();
  float internalT = ds.getTempCByIndex(0);
  float ambientT = dht.readTemperature();
  float h = dht.readHumidity();
  Serial.printf("kg=%.2f intT=%.1fC ambT=%.1fC RH=%.0f%%\n", w/1000.0, internalT, ambientT, h);
  // ...push to ThingSpeak / your own server every 5 minutes
  delay(300000);
}

Expected result: Serial output shows weight plus internal and ambient temperature and humidity readings at the configured interval.

Step 5 - Deploy at the apiary

Goal: Install the monitor so it runs continuously in real conditions.

What to do: Mount the electronics securely, protect the sensors and wiring from weather, and place the hive on the scale platform. If using solar power, install the panel and verify the charging setup.

Solar-powered ESP32 beehive monitor deployed in an apiary reporting sensor readings every five minutes
Solar-powered deployment reporting every 5 minutes.
Mobile phone dashboard displaying beehive weight and temperature and humidity readings from an ESP32
Live weight, internal and ambient temperature, and humidity from anywhere.

Expected result: The system runs in place and you can view readings in your dashboard or logs.

Step 6 - Extend the project

Goal: Identify safe next upgrades without changing the core build.

What to do: Consider expanding with one of the following additions:

  • Add LoRa (SX1262) for off-grid apiaries beyond Wi-Fi range
  • Detect swarm events from sudden weight drops plus a spike in audio (microphone)
  • Log to ThingSpeak / InfluxDB for multi-year datasets
  • Alert on temperature anomalies (overheating risk for the colony)

Expected result: A clear roadmap for future enhancements once the baseline monitor is stable.

Conclusion

You built an ESP32-based beehive monitor using an HX711 load cell amplifier for weight tracking, plus a DS18B20 probe and DHT22 sensor for temperature and humidity readings. With the data streaming over Wi-Fi, you can watch hive health and honey flow trends without opening the hive as often.

Want the exact parts used in this build? Grab them from ShillehTek.com. If you want help customizing this project or building something for your product, check out our IoT consulting services.