Projects / Beehive weight and temperature monitor

Beehive weight and temperature monitor

Advanced6 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. ESP32++771 g

    Build the platform

    Two boards with a cell under each corner.

  2. ESP32++772 g

    Wire the bridge

    Combine the four cells and check the sign by pressing each corner.

  3. ESP32

    Read the weight

    Print raw values and calibrate with known weights.

  4. ESP32DS18B2027.7°C

    Add the probe

    Place it in the brood box in a thin tube.

  5. ESP32RFM95W868

    Send over LoRa

    Build the receiver and see the packets.

  6. ESP32SOLARCN3065MT3608

    Add solar

    Panel, charger and boost to 5 V.

  7. ESP32

    Plot the days

    Chart weight to spot honey flow and swarming.

In short

How do you build a beehive weight and temperature monitor?

Four load cells under a hive track its weight each day to show honey flow, while a probe inside tracks brood temperature, all sent over LoRa. You need ESP32 DevKit V1, Weight sensor 50 kg half-bridge (bathroom scale) × 4, HX711 load cell amplifier, DS18B20 waterproof probe, Resistor 4.7 kΩ, RFM95W LoRa module (868 MHz), 868 MHz LoRa antenna, 18650 cell 2600 mAh (branded), Battery holder 18650 single, Solar panel 6 V 1 W, CN3065 solar Li-ion charger module, MT3608 Boost Module and Resistor 10 kΩ × 2. It takes 7 steps and about 360 minutes.

Level
Advanced
Time
About 360 min
Parts
13

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
Four load cellsHX711 E+, E-, A+, A-Combine as a full bridge (see the notes)
HX711 DT and SCKESP32 GPIO16 and GPIO17Weight data
HX711 VCC and GNDESP32 3V3 and GNDPower
DS18B20 dataESP32 GPIO4, with 4.7 kΩ to 3V3Brood probe
LoRa SS, RST, DIO0ESP32 GPIO5, GPIO14, GPIO26Radio control
LoRa SCK, MISO, MOSIESP32 GPIO18, GPIO19, GPIO23SPI
Cell plus through 10 kΩ and 10 kΩ dividerESP32 GPIO34 and GNDBattery level
Solar panelCN3065 charger, then Li-ion cellCharging
CellMT3608 boost (5 V) to ESP32 VINPower

Code

Bathroom-scale cells are half bridges with three wires each. Joining four into one full bridge follows a standard diagram: pairs share the excitation wires and the centre wires feed the amplifier inputs. Check by pressing each corner, because if a reading drops when you press a cell, swap that cell's red and black wires. Calibrate with known weights such as water bottles, find the factor that gives the right reading, and type it in as CAL. Weigh at night when bees are home, since foragers leaving make daytime readings jump. Arduino IDE with the ESP32 boards package 2.0.x, board "ESP32 Dev Module". Use the radio band that is legal in India (865 to 867 MHz) and never power the LoRa module without its antenna. Do not lift the box on to the cells with bees flying; a calm hour and a smoker or veil are your own responsibility.

Runs on a virtual ESP32 Dev Module in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

// Hive monitor: wake hourly, read weight and brood temperature, send over LoRa, sleep.
// Libraries: HX711 (bogde), OneWire, DallasTemperature, LoRa (Sandeep Mistry). Board: ESP32 Dev Module.
#include <HX711.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SPI.h>
#include <LoRa.h>
HX711 scale;
OneWire ow(4);
DallasTemperature probe(&ow);
const float CAL = 1.0;   // replace with your calibration factor
void setup() {
  scale.begin(16, 17);
  scale.set_scale(CAL);
  probe.begin();
  LoRa.setPins(5, 14, 26);
  LoRa.begin(433E6);                           // use the band legal in your country
  scale.power_up(); delay(500);
  float kg = scale.get_units(10);
  probe.requestTemperatures();
  float t = probe.getTempCByIndex(0);
  float vb = analogRead(34) / 4095.0 * 3.3 * 2.0;
  LoRa.beginPacket();
  LoRa.print("hive1,"); LoRa.print(kg, 2); LoRa.print(","); LoRa.print(t, 1); LoRa.print(","); LoRa.print(vb, 2);
  LoRa.endPacket();
  scale.power_down(); LoRa.sleep();
  esp_sleep_enable_timer_wakeup(3600ULL * 1000000ULL);
  esp_deep_sleep_start();
}
void loop() {}

What the serial monitor should show

Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual ESP32 Dev Module with its sensors at their default values. Your numbers will follow your real readings, but the format should match.

[deep sleep for 60 min 0 s]

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Add a 1 kg bottleWeight rises by about 1 kg
Night readingsSteady within 100 g
Brood temperatureAbout 34 to 35 degrees in summer
BatteryReading falls slowly and recovers with sun

If it does not work

Weight drifts

Shade the cells and allow warm-up.

One corner reads backwards

Swap that cell's red and black.

No LoRa packets

Check the band, antenna and wiring.

Reboots on transmit

The boost module needs a bigger capacitor.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the beehive weight and temperature monitor?

ESP32 DevKit V1, Weight sensor 50 kg half-bridge (bathroom scale) × 4, HX711 load cell amplifier, DS18B20 waterproof probe, Resistor 4.7 kΩ, RFM95W LoRa module (868 MHz), 868 MHz LoRa antenna, 18650 cell 2600 mAh (branded), Battery holder 18650 single, Solar panel 6 V 1 W, CN3065 solar Li-ion charger module, MT3608 Boost Module and Resistor 10 kΩ × 2.

How long does the beehive weight and temperature monitor take to build?

About 360 minutes for a advanced maker, in 7 steps.

How do I know the beehive weight and temperature monitor works?

Add a 1 kg bottle: Weight rises by about 1 kg. Night readings: Steady within 100 g. Brood temperature: About 34 to 35 degrees in summer.

Weight drifts: what should I check?

Shade the cells and allow warm-up.

One corner reads backwards: what should I check?

Swap that cell's red and black.

No LoRa packets: what should I check?

Check the band, antenna and wiring.

Reboots on transmit: what should I check?

The boost module needs a bigger capacitor.