In dairy farming, temperature, humidity, ammonia (NH₃), and carbon dioxide (CO₂) inside the barn directly impact milk production and animal health. Extensive European research shows that when the Temperature-Humidity Index (THI) exceeds 68, dairy cows begin experiencing heat stress and milk yield starts to decline. When THI exceeds 72, each cow can lose more than 2.7 kg of milk per day; at THI above 80, the loss approaches 4 kg per cow per day. Meanwhile, NH₃ concentrations above 10 ppm impair immunity, and CO₂ levels exceeding 3000 ppm indicate severe ventilation problems.
Traditional PLC solutions are costly, require complex wiring, and are difficult to modify. The BL192, a dairy farm monitoring module, an industrial-grade MQTT edge I/O module, features an isolated RS485 port, dual Ethernet ports, and expandable I/O. It can directly connect to various agricultural sensors, execute local logic control, and upload data to the cloud via MQTT. This article is aimed at European dairy farms and provides a detailed, practical guide to implementing this solution.
|
Parameter |
Sensor Type |
Signal Type |
Recommended Threshold |
|
Temperature + Humidity |
Temp/RH transmitter (e.g., EE210) |
RS485 Modbus RTU |
THI > 68 triggers Level 1 ventilation |
|
Ammonia (NH₃) |
Electrochemical NH₃ sensor |
RS485 Modbus RTU |
>10 ppm triggers enhanced ventilation + alarm |
|
CO₂ |
CO₂ sensor (e.g., S8) |
RS485 Modbus RTU |
>3000 ppm forces air exchange |
|
Additional temperature |
PT100 (Y51 module) |
RTD |
Local hot spot monitoring |
All sensors that support the Modbus RTU protocol can be connected in a daisy chain via BL192's isolated RS485 port. The BL192 acts as a Modbus RTU master, polling and collecting data.
|
Equipment |
BL192 I/O Module |
Description |
|
Main exhaust fan (high power) |
Y24 relay module |
Relay controls contactor, 250VAC/2A |
|
Circulation fan |
Y21 (PNP digital output) |
100mA per channel, direct drive |
|
Curtain motor (open/close) |
2 DO + 2 DI |
DO controls direction, DI receives limit switch signals |
|
Sprinkler pump |
Y24 relay |
Activates sprinkling during high heat |
|
Alarm light/buzzer |
DO (Y21/Y22) |
Alerts when thresholds are exceeded |
The BL192 supports up to three Y-series expansion modules, allowing flexible combinations of DI, DO, relay, AI, AO, RTD, and other I/O types.
Step 1: Calculate THI locally
Read temperature (°C) and humidity (%) via RS485. On the BL192's "Arithmetic Operation" page, create a calculation task:
THI = (temperature reading × 1.8 + 32) – (0.55 – 0.55 × humidity/100) × (temperature reading × 1.8 + 32 – 58)
Store the result in a custom register (e.g., REG40004).
Step 2: Create logic rules
Go to "Logic Operation" and create a rule named "THI>68". Select Input 1 as the THI register, choose "Greater Than" as the condition, set the threshold to 68, output type to Boolean, output address to the DO register controlling the Level 1 exhaust fan (e.g., REG1000), and set the Boolean value to "Close" (to start the fan).
Similarly, create a "THI>72" rule to activate secondary circulation fans, and a "THI>80" rule to start the sprinkler pump and run exhaust fans at full speed.
Result: When the barn THI rises, the BL192 automatically activates ventilation and cooling equipment in stages, without manual intervention or waiting for cloud commands.
Rule: When NH₃ > 10 ppm, regardless of the current THI, force-start additional air exchange fans and trigger an alarm.
In "Logic Operation", select Input 1 as the NH₃ register (from an RS485 slave), choose "Greater Than" as the condition, set the threshold to 10, and set the output addresses to the DOs for the backup fans and the alarm.
If you want a more advanced action only when "THI > 72 AND NH₃ > 10", you can combine the two conditions using an "AND" relationship in "Conditional Operation".
Rule: When CO₂ > 3000 ppm, force increased fresh air intake (e.g., set variable-frequency fan speed to 100%).
This can be implemented via "Logic Operation" or "Conditional Operation", with the output address connected to an AO module (such as Y41) to control the VFD.
All these logic operations are executed inside the BL192. Configuration is done through a web interface with simple point-and-click actions – no coding required. The web interface also displays whether each logic rule is currently triggered ("1") or not ("0"), making debugging easy.
An environmental monitoring system for dairy barns built with the BL192 can:
For European dairy farms, this solution significantly improves animal welfare, helps meet increasingly stringent environmental and farming regulations, and delivers direct economic returns (reduced milk loss, lower disease incidence).
The BL192 uses an isolated RS485 Modbus RTU master to collect data from a wide range of agricultural sensors, employs flexible I/O expansion to control field equipment, relies on local logic operations to automatically regulate heat stress and air quality, and finally uploads data via the MQTT protocol to AWS IoT Core for remote management. It fills the gap between expensive traditional PLC solutions and simple thermostats that cannot implement complex interlocking. The BLIIOT BL192 dairy farm monitoring module is an ideal choice for modern, automated dairy barn environmental control.