You are on page 1of 7

greenhouse monitoring system

with database and web application

*connect sensors to mobile app and database

A greenhouse monitoring system is a specialized system designed to monitor and control the
environmental conditions inside a greenhouse. These systems are used to maintain optimal growing
conditions for plants and ensure that they receive the right amount of light, water, and nutrients.

Some common features of a greenhouse monitoring system include:

Temperature and humidity sensors: These sensors measure the temperature and humidity levels
inside the greenhouse and help to ensure that the conditions are within the optimal range for plant
growth.

Light sensors: These sensors measure the amount of light inside the greenhouse and help to ensure
that plants are receiving the right amount of light for their growth.

Water sensors: These sensors measure the moisture levels in the soil and help to ensure that plants
are getting the right amount of water.

CO2 sensors: These sensors measure the levels of carbon dioxide inside the greenhouse and help to
ensure that plants are getting the right amount of CO2 for their growth.

Automated irrigation systems: These systems are designed to water plants automatically based on the
moisture levels in the soil.

Ventilation systems: These systems are designed to regulate the temperature and humidity levels
inside the greenhouse by controlling the flow of air.

Control systems: These systems allow growers to monitor and control the environmental conditions
inside the greenhouse remotely, using a computer or mobile device.
Greenhouse monitoring systems are essential for commercial growers who need to maintain optimal
growing conditions for their plants. They can also be useful for hobbyists who want to ensure that their
plants arereceiving the right conditions for healthy growth. These systems can help to save time and
effort by automating tasks like watering, temperature control, and ventilation. They can also help to
reduce waste by ensuring that plants receive the right amount of water and nutrients, which can prevent
overwatering or overfertilization.

Overall, a greenhouse monitoring system can be a valuable investment for anyone who wants to grow
healthy plants in a controlled environment.

*Determine your requirements: Before you begin building your system, you need to determine what
sensors and control systems you need based on the crops you are growing and the environmental
conditions you want to maintain. You should also consider the size of your greenhouse and your budget.

Choose your hardware: Once you have determined your requirements, you can select the sensors,
control systems, and other hardware components you need. You can purchase these components from a
variety of suppliers or build them yourself.

Set up your database: You will need a database to store the data collected from your sensors. You can
use a variety of database software options such as MySQL, PostgreSQL, or MongoDB. You will need to
design a database schema that will allow you to store and retrieve the data efficiently.

Choose your web application framework: You will need to choose a web application framework that
will allow you to build a user interface for your monitoring system. Popular web application frameworks
include Ruby on Rails, Django, and Flask.

Develop your web application: Using your chosen web application framework, you can develop a user
interface for your greenhouse monitoring system that allows you to view real-time data from your
sensors and control systems, as well as historical data.

Connect your hardware to your database: You will need to connect the sensors and control systems in
your greenhouse to your database. This can bedone using a variety of methods, such as using a
microcontroller like Arduino or Raspberry Pi to collect and transmit data to the database via Wi-Fi or
Ethernet.

Implement data analysis and visualization: Once your data is being collected and stored in your
database, you can implement data analysis and visualization tools to help you make informed decisions
about how to adjust the greenhouse environment. This can include creating charts or graphs to display
data trends over time.

Test and refine your system: Once you have your database and web application up and running, you
will need to test the system to ensure that it is working properly. You may need to make adjustments to
your hardware or software to improve performance or address any issues that arise.

Monitor and maintain your system: Once your system is up and running, you will need to monitor it
regularly to ensure that it is functioning properly. You may need to perform routine maintenance tasks
like calibrating sensors or replacing components as necessary.

*This greenhouse control system is powered by Atmega328 microcontroller it consists of

temperature sensor,

light sensor,

soil moisture sensor, LDR sensor, LCD display module, 12v DC fan, Bulb and pump. Temperature sensor,
senses the level of temperature., if it goes high DC fans gets on and when the temperature goes low the
fan gets off. Soil moisture sensor, senses the water level as the level decreases the pumps gets on. In the
absence of light, the LDR sensor senses and the bulb starts glowing. By this way it will become easy to
monitor and control the system.
Tomatoes.

Tomatoes require specific growing conditions to thrive. Here are some of the key factors that are
favorable for growing tomatoes:

Temperature: Tomatoes thrive in warm temperatures of between 21°C to 27°C (70°F to 81°F) during
the day and 15°C to 18°C (59°F to 64°F) at night. Temperatures outside of this range can cause tomato
plants to develop slowly or not produce fruit at all.

Sunlight: Tomatoes need plenty of direct sunlight to grow and produce fruit. They require at least six
to eight hours of direct sunlight each day, though some varieties may need more.

Soil: Tomatoes prefer well-draining soil that is rich in organic matter. Soil pH should be between 6.0
and 6.8 for optimal growth. Adding compost or other organic matter to the soil can help improve its
quality.

Water: Tomatoes require consistent moisture to grow, but they do not like to be waterlogged. Water
the plants deeply when the soil is dry to the touch, but do not let the soil become too wet. Overwatering
can lead to root rot and other problems.

Nutrients: Tomatoes require a balanced supply of nutrients, including nitrogen, phosphorus, and
potassium. Fertilizers can be added to the soil to provide these nutrients, but it is important not to over-
fertilize, as this can lead to problems like blossom end rot.

6.Pest and disease control: Tomatoes are susceptible to a variety of pests and diseases, including aphids,
whiteflies, and fungal diseases like blight. Regular inspection and treatment with organic or chemical
pest and disease control methods can help prevent or mitigate these issues.

By providing these favorable conditions, you can help ensure that your tomato plants grow and produce
healthy fruit. Additionally, choosing the right tomato variety for your growing conditions can also help
ensure success.
Green Spices

Sunlight: Most herbs require at least six hours of direct sunlight per day to grow well. However, some
herbs, such as parsley, can tolerate partial shade.

Temperature: Most herbs prefer temperatures between 18°C to 24°C (65°F to 75°F). They can be
grown indoors or outdoors, but if grown outdoors, they should be protected from frost.

Soil: Herbs prefer well-draining soil that is rich in organic matter. A pH level between 6.0 and 7.0 is
ideal. If the soil is lacking in nutrients, you can add compost or a balanced fertilizer.

Water: Herbs should be watered regularly, but be careful not to overwater. It's best to let the soil dry
out slightly between waterings. Overwatering can cause root rot and other problems.

Pests and diseases: Herbs are generally less susceptible to pests and diseases than other plants, but
they can still be affected by issues like aphids, spider mites, and fungal diseases. Regular inspection and
treatment with organic or chemical pest and disease control methods can help prevent or mitigate these
issues.

Pruning: Pruning your herbs regularly can encourage bushy growth and prevent them from becoming
too tall and leggy. You can alsoharvest the leaves regularly to promote new growth and prevent the plant
from going to seed.

To send data from sensors in Arduino to Firebase, you can follow these steps:

1. Create a Firebase account and project: First, create a Firebase account and create a new
project. Once the project is created, navigate to the Firebase console and select "Realtime
Database" from the "Develop" section.
2. Set up the Arduino environment: Install the Firebase Arduino library from the Arduino
Library Manager. To do this, open the Arduino IDE and go to "Sketch" > "Include
Library" > "Manage Libraries". Search for "Firebase Arduino" and click "Install".
3. Connect the Arduino to the sensors: Connect the sensors to the Arduino board and write a
sketch to read the sensor data. Make sure the sketch includes the Firebase library and
Firebase authentication credentials.
4. Send data to Firebase: Use the Firebase library's pushString or setString function to
send the data to Firebase. For example, if you have a sensor reading the temperature, you
can send the data to Firebase using the following code:

reasonml
#include <FirebaseArduino.h>

void setup() {
Firebase.begin("your-firebase-host", "your-firebase-auth");
}

void loop() {
float temperature = readTemperature(); // read the temperature data
Firebase.setFloat("temperature", temperature); // send the data to Firebase
delay(1000); // wait for a second
}

In this code, Firebase.begin initializes the Firebase library with your Firebase hostand
authentication credentials. readTemperature() is a function that reads the temperature data
from the sensor, and Firebase.setFloat sends the temperature data to Firebase with the key
"temperature". The delay function is used to wait for a second before sending the next data
point.

5. Monitor the data in Firebase: Once the data is sent to Firebase, you can monitor it in the
Firebase console. Select the "Realtime Database" tab and you should see the data being
updated in real-time.

That's it! With these steps, you can send data from sensors in Arduino to Firebase and monitor it
in real-time.

Color coding for page

#e1ad01
#263043

Temp
Temp

Moisture

Sun

water

You might also like