Farm and Shed Monitoring
Real-Time Monitoring for Cocoon Shed & Mulberry Farm
System Architecture

STAGE 1

System Architecture
Stage 1 – Mulberry Field Monitoring

Stage 1 of the silk farming environment monitoring system focuses on data collection from the mulberry field, where the quality of the leaves directly determines the quality of silk produced.

To achieve optimal conditions for mulberry growth, a network of sensors is deployed to monitor critical environmental parameters in real time.

🌿 Components and Functionality:
  • Leaf Sensor: Captures data from mulberry leaves to analyze their health and growth patterns. It helps detect early signs of disease, pest attacks, or nutrient deficiencies.
  • Soil Moisture Sensor: Continuously measures the water content in the soil to ensure optimal irrigation. This enables automated irrigation scheduling to enhance water efficiency and plant productivity.
  • pH Sensor: Monitors the acidity or alkalinity level of the soil. Keeping the soil pH within the ideal range (6.2–6.8 for mulberry) is vital for nutrient absorption. Alerts are triggered for corrective soil treatment when needed.
  • NPK Sensor: Measures essential soil nutrients β€” Nitrogen (N), Phosphorus (P), and Potassium (K). This data helps monitor soil fertility levels, supporting consistent and healthy mulberry growth.
🌾 Outcome:

These sensors work together to provide continuous monitoring of the mulberry field environment, enabling data-driven decisions regarding irrigation, soil health, and leaf quality improvement. The goal of Stage 1 is to ensure a steady and healthy leaf yield β€” the foundation for successful cocoon rearing.

View moniterd data

STAGE 2

🏠 Stage 2 – Cocoon Shed Monitoring

Once the mulberry leaves are harvested, the focus shifts to silkworm rearing, which takes place in a controlled cocoon shed. Stage 2 ensures that environmental parameters within the rearing shed are continuously monitored and maintained to provide an ideal habitat for silkworm development.

🌑 Components and Functionality:
  • Temperature Sensor: The cocoon shed requires a stable temperature range (typically between 24Β°C and 28Β°C) for healthy silkworm growth. The temperature sensor records real-time readings, helping monitor any fluctuations that could affect cocoon formation. In future integrations, the system can automatically control cooling or heating systems based on sensor feedback.
  • Humidity and Air Circulation (Future Integration): The humidity levels inside the shed also play a critical role. Although currently focused on temperature, the system can be expanded to include humidity and airflow sensors, ensuring the shed maintains proper moisture and ventilation for optimal cocoon development.
πŸ› Outcome:

Stage 2 ensures the silkworms are raised in a stable, controlled, and data-monitored environment. Proper environmental management leads to better cocoon quality, reduced mortality, and consistent silk yield β€” making this stage vital for the silk production cycle.

System Architecture

STAGE 3

System Architecture
☁️ Gateway to Interfaces – Data Transmission and Visualization

After data is collected from the sensors in both stages, it is transmitted through a LoRaWAN Gateway to the Cloud for storage, processing, and visualization. This section is the digital backbone of the monitoring system β€” enabling remote access and real-time updates.

πŸ“‘ Gateway and Cloud Connectivity:

The LoRaWAN Gateway acts as a bridge between the field sensors and the cloud. It receives sensor data packets transmitted over long-range wireless communication and forwards them securely to the central cloud server.

The system architecture ensures low-power, long-distance communication, which is ideal for rural agricultural environments with limited connectivity.

The gateway communicates with The Things Network (TTN), which then pushes data to the project’s cloud database through secure MQTT or HTTP webhooks.

πŸ’Ύ Cloud Database and Storage:

The collected data is stored in a MySQL database, where each entry is timestamped and recorded.

The backend is designed to handle real-time updates β€” if any sensor stops transmitting temporarily, the application displays the latest available readings from the database, ensuring continuous system functionality without interruption.

A PHP-based backend script manages database insertion and data validation, maintaining accuracy and consistency.

πŸ’»πŸ“± User Interfaces:

The cloud-stored data is visualized through both web and mobile interfaces, providing flexibility and accessibility to farmers, researchers, and administrators.

Web Interface:

The web dashboard (accessible via silk.educode.co.in) displays live sensor readings, graphical trends, and historical data analysis. Users can monitor multiple sensors simultaneously, observe patterns, and make data-driven agricultural decisions.

Mobile Interface:

The mobile version offers a compact, real-time view of environmental conditions for users in the field. The interface focuses on clarity and simplicity, showing temperature, moisture, humidity, and pH readings updated directly from the cloud.

πŸ”„ Overall Workflow:
  • Sensors in Stage 1 and Stage 2 collect environmental data.
  • Data is transmitted wirelessly to the LoRaWAN Gateway.
  • The gateway forwards the data to the Cloud Server via TTN.
  • The Database stores and manages all incoming data entries.
  • Data is displayed on Web and Mobile Interfaces for real-time visualization and monitoring.
🌐 Outcome:

This integration ensures seamless communication from sensors to users, combining IoT, cloud computing, and web technologies into a single, unified system. The platform empowers farmers with accurate environmental insights β€” promoting smart, data-driven, and sustainable silk cocoon farming.