Final Report8
Final Report8
Final Report8
1. INTRODUCTION
1.1 Introduction
Farming is backbone of economy, and it is the fundamental method for occupation. The large population
of world depends on farming. Around 70% of Indian population depends on cultivation. Most of the
cultivation cannot be productive only by physical activities so have to be handled by innovative
technologies. Therefore, we use IoT innovation to address the critical part of farming.
In this modern world, most of the farmers lack of proper knowledge regarding farming and
agriculture making it more erratic. Most part of farming and agricultural related activities are based on
prediction and forecasting. When it fails, the farmers must bear huge losses, and some end up committing
suicide. Since we are aware of the benefit of quality of soil, air, and irrigation in the growth of crops
such parameters like temperature and moisture cannot be neglected.
Internet of Things (IoT) is the interconnection or network of physical devices that is interrelated
computing devices, digital and mechanical machines, people or animals, objects that can sense,
accumulate, and transfer data over web without any human involvement. It is a progressed examination
and mechanized frameworks which uses detecting, organizing, enormous information and man-made
consciousness innovation to convey total framework for an administration. Basically, IoT is about
extending the power of internet beyond smart phones and computers.
IoT has changed today’s world. Smart cities, smart car, smart homes everything around us can
be turned into a smart device with the help of IoT. It also has applications in agriculture, business sectors,
healthcare, transport, and logistics.
The destiny of Indian agriculture must be worked with understanding and excessive
technologies that can expand production and furthermore regains the attention of farmers in this
industry. So, these smart farming techniques would assist farmers to lessen scrap and enhance
capacity. This technology can help farmers to monitor field conditions from anywhere with the
help of sensors and can also irrigate fields with an automated system. It is the application of
Information and Communication Technology in the field of agriculture.
• Agricultural drones
• Livestock monitoring
• Smart greenhouses
1.4 Motivation
Different kind of problems faced by the farmers motivated us for the recommended system that are:
the Indian farming is on the hitch because of the limited technical knowledge how the best and
efficient agricultural practices and moreover they are still dependent on conventional methods of
agriculture that leads to lesser productivity of crops. So, by using upcoming technology the
productivity of crops can be maximized at minimal cost. This also reduces burden of taking up of
heavy loans on farmers which they have incurred on themselves to sustain their livings or to get good
yields of their crops. Apart from these issues scarcity of resources also adds up in their problem
causing hindrance or stopping framers from cultivating and hence Indian economy is also
additionally getting influenced to large extent as most of the fruitful lands of the nation are being
destroyed that forms the vital part of GDP.
So, through this framework we are presenting solution for this issue by introducing an automated
and systematic farming strategies that enable farmers to cultivate in a productive way also with
limited resources and greater yield which is assured and efficient.
2.LITERATURE SURVEY
➢ G. Sushanth et.al [1] has proposed a smart agriculture system using sensors, microcontroller
within an IoT system. The aim of the implementation is to demonstrate the smart and intelligent
capabilities of the microcontroller to allow the decisions to be taken on watering the plants based
on the continuous monitoring of the environmental conditions in the field. It also aims at a
predefined irrigation schedule as per the farmers convenience, uploaded into the application
developed for the same. The implementation is a photovoltaic powered automated irrigation
system that consists of a distributed wireless network of soil moisture and temperature sensors
deployed in plant root zones. These sensors continuously monitor the parameters and send it to
the Arduino board for further processing which acts as an IOT gateway. This gateway has been
given the wireless capability by installing a Wi-Fi module which will be updating the data to the
cloud. The IOT gateway also has the GSM capability through the module connected. The receiver
unit also has a duplex communication link based on a cellular-Internet interface, using general
packet radio service (GPRS) protocol, which is a packet-oriented mobile data service used in 2G
and 4G cellular global system for mobile communications (GSM). The data being uploaded to
the cloud allows the user to continuously view the parameters from the comforts of his/her home
or wherever on the go. The system has the capacity to adapt based on the user input which the
farmer can input through the smart agriculture application. The farmer can select a profile based
on the season and the crop for irrigation and schedule and plan the water resource utilization
sensibly. The volumetric water content in the soil is a primary factor which gives a suggestion
that the water is required for the crops. In the absence of this system the farmer has to manually
inspect these for all the crops by inspecting the soil in the fields which is tedious, time consuming
and straining. This can be taken care by the intelligent system which informs the user whenever
the water content goes below the threshold set by the farmer himself. Intrusion of animals
especially cows, monkeys, dogs etc to the fields is a very common issue and one of the factors
for disruption or disturbance to the yield. This requires one person to continuously guard the
fields at all the times which will not be accurate and the productivity of one person is wasted.
This can be overcome by this system which has a motion sensor to detect the presence of any
animal in the fields and send notifications to the farmer in their presence. The distance range for
which the farmer needs to detect the animals can be allowed to set by the farmer himself in the
application in the beginning.
➢ Mrs.T.Vineela et.al [2] presented system in which that information must be collected from
different sensors and live monitoring should be done but in this research paper the stress is laid
on getting things automated. In this paper the writers aim at increasing the crop yield by using
different technologies. It also presents a cost efficient WSN for getting information from
humidity sensor, soil moisture sensor and temperature sensors. It suggests an automated system
for better crop production. And suggested a methodology that does sensing of data smartly and
proposes a smart irrigation system. In the proposed model various sensors are interfaced with
raspberry pi hence making an efficient wireless sensor network.
➢ Chandan Kumar Sahu et.al [3] has proposed a model where the flow and direction of
water is supervised and controlled. This is done with the help of DHTT11 and soil moisture
sensor. It also includes a way to select the direction of water and this information is also sent to
the phone and Gmail account of the farmer. It enables the farmer to switch on and off the motor
with a single click. The proposed model makes the traditional irrigation system more effective
and sustainable. And suggests an efficient energy and network model which is also cost effective.
➢ Dr. Sanjay N. Patil et.al [4] have analysed collected data for finding correlation between
environment work and yield for standard work. They are concentrated on crop monitoring,
information of temperature and rainfall is collected as initial spatial data and analysed to reduce
the crop losses and to improve the crop production.
An IOT Based Crop-field monitoring an irrigation automation system explains to monitor
a crop field. A system is developed by using sensors and according to the decision from a server
based on sensed data. By using wireless transmission, the sensed data forwarded to web server
database. The user can monitor and control the system remotely with the help of application
which provides a web interface to user.
IOT Based Smart Agriculture Monitoring System develops various features like GPS
based remote controlled monitoring, soil moisture and temperature sensing, intruders scaring,
security, leaf wetness and proper irrigation facilities.
➢ Nikesh Gondchawar et.al [5] has presented paper consists of four sections; node1, node2,
node3 and PC or mobile app to control system. In the present system, every node is integration
with different sensors and devices, and they are interconnected to one central server via wireless
communication modules. The server sends and receives information from user end using internet
connectivity. There are two modes of operation of the system: auto mode and manual mode. The
auto mode system takes its own decisions and controls the installed devices whereas in manual
mode user can control the operations of system using android app or PC commands.
Node 1: Node1 is GPS based mobile robot which can be controlled remotely using
computer as well as it can be programmed to navigate autonomously within the boundary of field
using the co-ordinates given by GPS module. Node 1, the remote-controlled robot has various
sensors and devices like camera, obstacle sensor, siren, cutter, sprayer and using them it will
perform tasks like, Keeping vigilance, Bird and animal scaring, Weeding, and Spraying
Node 2: Node2 will be the warehouse. It consists of motion detector, light sensor,
humidity sensor, temperature sensor, room heater, cooling fan altogether interfaced with AVR
microcontroller. Motion detector will detect the motion in the room when security mode will be
ON and on detection of motion, it will send the alert signal to user via Raspberry pi and thus
providing theft detection. Node 2 Temperature sensor and Humidity sensor senses the
temperature and humidity respectively and if the value crosses the threshold, then room heater
or cooling fan will be switched ON/OFF automatically providing temperature and humidity
maintenance. Node2 will also controls water pump depending upon the soil moisture data sent
by node3.
Node 3: Node3 is a smart irrigation node with features like Smart control of water pump
based on real time field data i.e., automatically turning on/off the pump after attaining the
required soil moisture level in auto mode, Switching water pump on/off remotely via mobile or
computer in manual mode, and continuous monitoring of soil moisture.
3.PROPOSED SYSTEM
The proposed system focuses on live monitoring of soil moisture, temperature and humidity of
storage, spoilage detection of onion yield covering based on rain detection. The system provides the
concept of “Plug & Sense” in which farmers can directly implement smart farming by putting the system
on the field and getting live data on various devices like smart phones, tablets etc. and the data generated
via sensors can be easily shared.
3.1 OBJECTIVES
Proposed system objectives are:
➢ Irrigation based on soil moisture level.
➢ Sensing of temperature and humidity.
➢ Automatic yield covering.
➢ Smoke and spoilage detection in storage case
• BLOCK DIAGRAM
Figure 3.1 shows the proposed system of IoT based smart agriculture system.
Buzzer
MQ-135
Motor control
system
Nodemcu
NodeMCU
DHT11 Sensor
Motor
Internet
Application (Blynk)
3.2 Working
It consists of NodeMCU and Arduino for interfacing all sensors. The sensors used are.
1. Soil moisture sensor
2. DHT11 sensor
3. Rain detection sensor
4. MQ2 gas sensor,
5. MQ-135 gas sensor
Soil moisture sensor senses the moisture level of the soil to make motor turn on or off. DHT11
sensor is used to sense the temperature and humidity in storage of onion. Rain detection sensor
senses the presence of rain and gives the digital output-based on output does yield covering.MQ-
2 sensor which senses smoke.
MQ-135 sensor used to detect the spoilage of onion, gives alertness through buzzer. DC motor
used to cover the harvested yield. All these sensed parameters are sent to Arduino. Serial
communication is done between Arduino and NodeMCU.
3.3 COMPONENTS:
3.3.1 Arduino
6 analog inputs, a 16 MHz crystal oscillator, a USB connection, a power jack, an ICSP header, and a
reset button.
Parameter Specifications
Analog inputs 6
SRAM 2kb
EEPROM 1kb
Clock 16Mhz
3.3.2 NodeMCU
The NodeMCU ESP8266 development board comes with the ESP-12E module containing ESP8266
chip having Tensilica Xtensa 32-bit LX106 RISC microprocessor. This microprocessor supports RTOS
and operates at 80MHz to 160 MHz adjustable clock frequency. NodeMCU has 128 KB RAM and 4MB
of Flash memory to store data and programs. Its high processing power with in-built Wi-Fi / Bluetooth
and Deep Sleep Operating features make it ideal for IoT projects.
NodeMCU can be powered using Micro USB jack and VIN pin (External Supply Pin). It supports
UART, SPI, and I2C interface.
Figure 3.3.3 shows the diagram of soil moisture sensor. Soil moisture sensor is a sensor which senses
the moisture content of the soil. The sensor has both analog and digital output. The digital output is fixed
and the analog output threshold can be varied. It works on the principal of open and short circuits. The
output is high or low indicated by the LED. When the soil is dry the current will not pass through it and
so it will act as open circuit. Hence the output is said to be maximum. When the soil is wet, the current
will pass from one terminal to the other and the circuit is said to be short, and the output will be zero.
Parameter Specifications
Model name FC 28
Operating Temperature -40 to +60 deg C
Sensing Range 0-45%volumetric water content of soil
Operating Voltage 5V DC
Power Consumption 3mA
Parameter Specifications
Input/output voltage 3V / 5V
Response time 50 ms
Accuracy +\-5%RH
turn on when induction board has no rain drop, and the output is high. When dropping a little amount
water, the output is low, the switch indicator will turn on, Brush off the water droplets, and when restored
to the initial state, outputs high level.
Parameter Specifications
Working voltage 5v
Output format Digital output (0 or 1)
Pcb size 3.2*1.4 cm
current 15mA
Parameters Specifications
Operating voltage 5v
Load resistance 20 kilo ohms
Heater resistance 33 ohms
Heating consumption < 800mv
Sensing resistance 10 to 60 kilo ohms
Concentration scope 200 to 10000 ppm
Parameters Specifications
Operating voltage 5v
Load resistance 20 kilo ohms
Pin type Digital or Analog
Analog output voltage 0V to 5V
Digital Output Voltage 0V to 5V
Concentration scope 200 to 10000 ppm
4.IMPLEMENTATION
4.1 Simulation of proposed work:
The Proteus Design Suite is a proprietary software tool suite used primarily for electronic design
automation.
The Proteus Design Suite is a Windows application for schematic, simulation, and PCB layout design.
It can be used in many configurations, depending on the size of designs being produced and the
requirements for microcontroller simulation. Schematic capture in the Proteus Design Suite is used for
both the simulation of designs and as the design phase of a PCB layout project. It is therefore a core
component and is included with all product configurations.
• Algorithm:
Step 1: Start
Step 8: Stop
Start
MQ gas
DHT11
sensor
Read the data from sensors
and send the measured data to
Soil the cloud using Arduino and Rain
NodeMCU.
Moisture detection
Turn OFF
Turn OFF
Turn OFF
• A flowchart is a picture of the separate steps of a process in sequential order. It is a generic tool
that can be adapted for a wide variety of purposes, and can be used to describe various
processes, such as a manufacturing process, an administrative or service process, or a project
plan.
• In the first step, reading the data from all sensors like Soil moisture, DHT11, Rain detection
and MQ gas. The measured data are sent to Arduino for processing purpose and then send to
Cloud through
Wi-Fi module.
• Monitoring of the data takes place in the processor like as measurement of temperature, soil
moisture level, possibility of rain, gas level.
• In the next step, based on weather conditions operations are takes place in order wise. For
example, if the moisture level is less than 60% then motor pump ON automatically and if it is
greater than mentioned level, motor will be in turn OFF condition.
• If it is raining in field, DC motor turn ON to cover the yield.
• If the gas level is more than 300 ppm, then Buzzer in ON state as it gives alertness for stored
yield.
• In this way the above-mentioned steps take place to perform the specified tasks.
5.RESULTS
• Simulation Results: The below figure 5.1 depicts the simulation result of proposed system
using proteus software. Output of DHT11 and soil moisture sensor is available in virtual
terminal.
• Soil moisture:
50.00
40.00
30
30.00
20.00
10.00
0.00
12:00 AM 02:24 AM 04:48 AM 07:12 AM 09:36 AM 12:00 PM 02:24 PM 04:48 PM 07:12 PM
Time
Figure 5.3 shows the graphical analysis of FC-28 soil moisture sensor. When FC-28
senses the moisture level of soil if it is less than 60% then the motor pump will be on, and
motor supplies the water to the field after reaching the 60% moisture level the motor pump will
turned off.
500
500.00
Smoke level in ppm
400.00
300.00 250
200.00
145 If sensor detects more
than 300 ppm gas,
100.00 buzzer will turn on
0.00
12:00 AM 02:24 AM 04:48 AM 07:12 AM 09:36 AM 12:00 PM 02:24 PM 04:48 PM 07:12 PM
Time
37
Ammonial level in ppm
40.00
30.00 25
20.00
10
10.00
0.00
12:00 AM 02:24 AM 04:48 AM 07:12 AM 09:36 AM 12:00 PM 02:24 PM 04:48 PM 07:12 PM
Time
The above figure 5.5 shows the real time analysis of MQ-135 sensor. MQ-135 is used
to monitor spoilage of onion if sensor reading is greater than 35ppm the buzzer will be turned
on.
• DHT11
DHT11
80 76
70
60 Humidit
58
y54
Temperature and Humidity
60
50
40 33
26 28
30 22
20
Temperature
10
0
12:00 AM 02:24 AM 04:48 AM 07:12 AM 09:36 AM 12:00 PM 02:24 PM 04:48 PM 07:12 PM
Time
The above figure 5.6 shows graphical representation of DHT11 sensor result. DTH11
sensor sense the temperature and humidity level in storage place of onion, where optimum
temperature and humidity for onion storage are 32-40 C and 75-80 RH% respectively.
7.REFERENCES
1. G. Sushanth, S. Sujatha, “IOT Based Smart Agriculture System”, 1,2Department of ECE, Christ
University, Bangalore, India, 978-1-5386-3624-4/18/$31.00 c IEEE-2018.
3. Chandan Kumar Sahu, Pramitee Behera, “A Low-Cost Smart Irrigation Control System”, IEEE
sponsored 2nd International Conference on Electronics and Communication System (ICECS2015)
2015.
4. Dr. Sanjay N. Patil, Madhuri B. Jadhav” Smart Agriculture Monitoring System Using IOT”
International Journal of Advanced Research in Computer and Communication Engineering Vol. 8,
Issue 4, April 2019.
5. Nikesh Gondchawar, Prof. Dr. R. S. Kawitkar” IoT based Smart Agriculture” International Journal
of Advanced Research in Computer and Communication Engineering Vol. 5, Issue 6, June 2016.
6. P. Nandhini, V. Kalpana, J. Sikkandhar Batcha, “IoT Based Smart Agriculture Monitoring and
Irrigation System Using Raspberry Pi Kit", International Journal of Engineering Development and
Research (IJEDR), ISSN:2321-9939, Volume.6, Issue 2, pp.820-824, June 2018.
8. R. N. Rao and B. Sridhar, "IoT based smart crop-field monitoring and automation irrigation system,"
2018 2nd International Conference on Inventive Systems and Control (ICISC), Coimbatore, India,
2018.
9. S. R. Prathibha, A. Hongal and M. P. Jyothi, "IOT Based Monitoring System in Smart Agriculture,"
2017 International Conference on Recent Advances in Electronics and Communication Technology
(ICRAECT), Bangalore, India, 2017.
10. M. S. Islam and G. K. Dey, "Precision Agriculture: Renewable Energy Based Smart Crop Field
Monitoring and Management System Using WSN via IoT," 2019 International Conference on
Sustainable Technologies for Industry 4.0 (STI), Dhaka, Bangladesh, 2019.
11. Ms. Swapnali B.Pawar, Prof. Priti Rajput, Prof. Asif Shaikh,” Smart Irrigation System Using IOT And
Raspberry Pi”, international Research Journal of Engineering and Technology (IRJET) e-ISSN: 2395-0056
Volume: 05 Issue: 08 | Aug 2018.
12. Shilpa R Maiya, Dr Aishwarya P,” Smart Agriculture using IoT”, International Research Journal of
Engineering and Technology (IRJET) e-ISSN: 2395-0056 Volume: 07 Issue: 04 | Apr 2020.
13. M. S. D. Abhiram, J. Kuppili and N. A. Manga, "Smart Farming System using IoT for Efficient Crop
Growth," 2020 IEEE International Students' Conference on Electrical,Electronics and Computer
Science (SCEECS), Bhopal, India, 2020.
14. S. Namani and B. Gonen, "Smart Agriculture Based on IoT and Cloud Computing," 2020 3rd
International Conference on Information and Computer Technologies (ICICT), San Jose, CA, USA,
2020.
15. Y. Mekonnen, L. Burton, A. Sarwat and S. Bhansali, "IoT Sensor Network Approach for Smart
Farming: An Application in Food, Energy and Water System," 2018 IEEE Global Humanitarian
Technology Conference (GHTC), San Jose, CA, USA, 2018.
16. M. Dholu and K. A. Ghodinde, "Internet of Things (IoT) for Precision Agriculture Application,"
2018 2nd International Conference on Trends in Electronics and Informatics (ICOEI), Tirunelveli,
India, 2018.
17. A. Srivastava, D. K. Das and R. Kumar, "Monitoring of Soil Parameters and Controlling of Soil
Moisture through IoT based Smart Agriculture," 2020 IEEE Students Conference on Engineering &
Systems (SCES), Prayagraj, India, 2020.
18. S. Ayyasamy, S. Eswaran, B. Manikandan, S. P. Mithun Solomon and S. Nirmal Kumar, "IoT based
Agri Soil Maintenance Through Micro-Nutrients and Protection of Crops from Excess Water," 2020
Fourth International Conference on Computing Methodologies and Communication (ICCMC),
Erode, India, 2020.
19. L. Dan, W. Hongli, Z. Mengya and X. Jianqiu, "Intelligent Agriculture Greenhouse Environment
Monitoring System Based on the Android Platform," 2017 International Conference on Smart Grid
and Electrical Automation (ICSGEA), Changsha, China, 2017.
20. S. Verma, R. Gala, S. Madhavan, S. Burkule, S. Chauhan and C. Prakash, "An Internet of Things
(IoT) Architecture for Smart Agriculture," 2018 Fourth International Conference on Computing
Communication Control and Automation (ICCUBEA), Pune, India, 2018.
21. M. S. D. Abhiram, J. Kuppili and N. A. Manga, "Smart Farming System using IoT for Efficient Crop
Growth," 2020 IEEE International Students' Conference on Electrical,Electronics and Computer
Science (SCEECS), Bhopal, India, 2020.
22. L. Kamelia, Y. S. Nugraha, M. R. Effendi and T. Priatna, "The IoT-Based Monitoring Systems for
Humidity and Soil Acidity Using Wireless Communication," 2019 IEEE 5th International
Conference on Wireless and Telematics (ICWT), Yogyakarta, Indonesia, 2019.
24. S. Athani, C. H. Tejeshwar, M. M. Patil, P. Patil and R. Kulkarni, "Soil moisture monitoring using
IoT enabled arduino sensors with neural networks for improving soil management for farmers and
predict seasonal rainfall for planning future harvest in North Karnataka — India," 2017 International
Conference on I-SMAC (IoT in Social, Mobile, Analytics and Cloud) (I-SMAC), Palladam, India,
2017.
25. .M. Lavanaya and R. Parameswari, "Soil Nutrients Monitoring for Greenhouse Yield Enhancement
Using Ph Value with Iot and Wireless Sensor Network," 2018 Second International Conference on
Green Computing and Internet of Things (ICGCIoT), Bangalore, India, 2018.
APPENDIX
Source code listing
• Collecting data through sensors
#include <SoftwareSerial.h>
#include <ArduinoJson.h>
SoftwareSerial s(5,6);
const int Sensor2 = A1;
int buzzer = 2;
int gasthreshold = 300;
int val;
void setup() {
s.begin(115200);
pinMode(A0,INPUT);
pinMode(A1,INPUT);
pinMode(4,INPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
pinMode(10,OUTPUT);
pinMode(9,OUTPUT);
}
StaticJsonBuffer<1000> jsonBuffer;
JsonObject& root = jsonBuffer.createObject();
void loop() {
int smoke = analogRead(A0);
Serial.println(smoke);
if(smoke>=gasthreshold){
tone(buzzer,1000,200);
}
else{
noTone(buzzer);
}
root["gasv"]= analogRead(A0);
delay(100);
float moisture_percentage;
int sensor_analog;
sensor_analog = analogRead(Sensor2);
moisture_percentage = ( 100 - ( (sensor_analog/1023.00) * 100 ) );
if(moisture_percentage <= 50){
digitalWrite(10,HIGH);
digitalWrite(9,LOW);
}
else {
digitalWrite(10,LOW);
digitalWrite(9,LOW);
}
root["Moisture"] = moisture_percentage;
val = digitalRead(4); // rain sensor output pin connected
Serial.println(val); // see the value in serial mpnitor in Arduino IDE
delay(100);
//Rain sensor code starts from here;
if(val == 1 )
{
digitalWrite(7,LOW);
digitalWrite(8,LOW);
//digitalWrite(3,HIGH);
}
else
{
digitalWrite(7,HIGH);
digitalWrite(8,LOW);
// digitalWrite(3,LOW);
}
if(s.available()>0)
{
root.printTo(s);
}
}
#include <SoftwareSerial.h>
SoftwareSerial s(D6,D5);
#include <ArduinoJson.h>
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <DHT.h>
#define DHTPIN 0 // D3
{
float h = dht.readHumidity();
float t = dht.readTemperature(); // or dht.readTemperature(true) for Fahrenheit
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V5, t);
Blynk.virtualWrite(V6, h);
}
void sendSensor1(){
StaticJsonBuffer<1000> jsonBuffer;
JsonObject& root = jsonBuffer.parseObject(s);
if (root == JsonObject::invalid())
{
return.
}
int data4=root["gasv"];
Blynk.virtualWrite(V7, data4);
float data5 = root["Moisture"];
Blynk.virtualWrite(V8, data5);
//if( data5 <= 50.0){
//Blynk.notify(" your plant watering");
//}
//Blynk.virtualWrite(V8, data5);
void setup()
{
// Debug console
Serial.begin(9600);
dht.begin();
// Initialize Serial port
Serial.begin(115200);
s.begin(115200);
while (!Serial) continue;