Agro-IoT: Poultry and Beekeeping

ESP32 LoRaWAN Home Assistant MicroPython MQTT

INIT_SENSOR_GRID: SECTOR_7

Technology isn’t just for data centers; its real impact is measured in the field. This project scales a free-range poultry initiative (from a test group to over 200 birds) using telemetry and On-Premise automation.

IoT Network Topology

In rural areas, Wi-Fi lacks range. To solve this, I implemented a LoRaWAN / ESP-NOW network that allows nodes to communicate over kilometers with a central gateway connected to Home Assistant.

Deployed Nodes:

Coop Control: Door automation (opening/closing) based on light sensors (LDR) and sun schedules astronomically calculated by Python.

Beekeeping Telemetry: Load cells under the hives to monitor weight in real time (detecting nectar flow or swarming) without opening the box.

Microclimate Monitoring: BME280 sensors to record temperature, humidity, and atmospheric pressure in the apiary.

esp_now_send(gateway_mac, (uint8_t *) &sensorData, sizeof(sensorData)); esp_sleep_enable_timer_wakeup(TIME_TO_SLEEP * uS_TO_S_FACTOR); esp_deep_sleep_start();

The entire system consumes a fraction of a watt per node and is powered by 5V mini-solar panels and recycled 18650 batteries.

TUXBOT@SYSTEM:~$ ./chat
> SYSTEM INITIALIZED. FLEET STATUS: ACTIVE.
🐧🤖 [Tuxbot]: Hello, I am Tuxbot. Your Ghost in the Shell for dragont.ec. What do you want to query today?
>