FINAL APPROVAL 1. This is to certify that we have read this report submitted by Raza Shah M.Shahid and Amir Afzal and it is our judgment that this report is of sufficient standard to warrant its acceptance by MNS-University of Agriculture, Multan for the degree of BS (Information Technology). Committee: 1. External Examiner ______________________ <<Examiner Name>> <<Designation>> <<Organization>> 2. Supervisor ________________ Dr. Ayesha Hakim Assistant Professor Department of Computer Science . 3. Head of Department Dr. Ayesha Hakim Assistant Professor, MNS-University of Agriculture, Multan ________________ DECLARATION This is to certify that Raza Shah(2016-UAM-358) M.Shahid(2016-UAM-358) and Amir Afzal (2016-UAM-358) Session (2016-2020) have worked on and completed their software project “Smart Fish Farm Monitoring System” at the Department of Computer Science/IT, MNSUniversity of Agriculture, Multan, in partial fulfillment of the requirements for the degree of BS (Computer Science). Date:_____________ Signature: _____________________ Raza Shah 2016-UAM-358 Signature: _____________________ Muhammad Shahid 2016-UAM-401 Signature: _____________________ Amir Afzal 2016-UAM-393 DEDICATION Our project is dedicated to Our Institute Muhammad Nawaz Shareef University of Agriculture, Multan. We are surely grateful to have such a great institute that prospered the knowledge and skills for the students of South Punjab and especially our teachers and parents. Without their support, we shall never have accomplished our project. Their guidance enlightens our way to success and their prayers enabled us to do this project. ACKNOWLEDGMENT First, we are thankful to Allah Almighty for completing this project, we sure that the person who follow the rules of God, never failure in his life. Allah says, “Work should be done by you and reward will be given by me”. The life of Holy Prophet (PBUH) is ideal for us. Our Holy Prophet (PBUH) “By him in who’s in hand is my soul if one of you were to carry a bundle of firewood on his back and sell it, that would be better for him than begging a man who may or may not give him anything”. We are thankful to our loving parents and family for their encouragement and provide us all sort of help like moral, social, and financial in completing this project. We are thankful to all teachers of our university and special for those who were the project management and software development subject teachers and specially with the soul of heart to guide us like a son for guidance, and also played a vital role in completing our project. We dedicate a quotation to our loving teachers. PROJECT BRIEF PROJECT NAME Smart Fish Farm Monitoring System ORGANIZATION NAME MNS-University of Agriculture Raza Shah UNDERTAKEN BY Amir Afzal Muhammad Shahid SUPERVISED BY Dr. Ayesha Hakim STARTING DATE <<October 01, 2019>> COMPLETION DATE <May 01, 2020>> <<Pentium/AMD/Intel Core m3 7th Gen, , 8GB RAM , COMPUTER USED 1TB Hard disk>> OPERATING SYSTEM <<MS Windows X /Linux / Solaris>> SOURCE LANGUAGE(S) <<Cpp, HTML, PHP>> DBMS USED <<My-SQL, MS SQL SERVER>> TOOLS/PACKAGES <<Arduino / Edit Pro /Dreamweaver>> PLAGIARISM UNDERTAKING I solemnly declare that the work presented in the report titled “Smart Fish Farm Monitoring System” is solely our work with no significant contribution from any other person. Small contribution/help wherever taken has been duly acknowledged and that complete report has been written by us. I understand the zero tolerance policy of the HEC and MNS-University of Agriculture, Multan towards plagiarism. Therefore, I as an Author of the above titled report declare that no portion of my report has been plagiarized and any material used as reference is properly referred/cited. I undertake that if I am found guilty of any formal plagiarism in the above titled report even after award of the degree, the University reserves the rights to withdraw/revoke my degree and that HEC and the University has the right to publish my name on the HEC/University Website on which names of students are placed who submitted plagiarized report. Student Signature: ______________ Name________________ ABSTRACT Investment and operating costs are the biggest obstacles in modernizing fish ponds in an otherwise very lucrative industry i.e. food production, in this region. Small-scale farmers running on small ponds could not afford to hire workers to man daily operations which usually consists of monitoring water levels, temperature and feeding fish. Bigger scale enterprises usually have some kinds of automation for water monitoring and replacement. These entities have to consider employing pH, Turbidity, water level And water temprature Sensor to ensure the water quality, health and growth of fish, sooner or later as their farms grow. This project identifies one of the sites, located in MNS University of agriculture Multan. In this project, water, temperature, pH and Turbidity and water levels are measured and integrated with aerating and water supply pumps using Esp32. User could receive information at predetermined intervals on preferred communication or display gadgets as long as they have internet. Since integrating devices are comparatively not expensive; it usually consists of Arduino board, internet and relay frames and display system, farmer could source these components easily. A sample of two days measurements of temperature, pH Turbidity and water levels show that this farm has a high-quality water.. With this integration system, farmer need not hire worker at their site, consequently drive down operating costs and improve efficiency. TABLE OF CONTENTS Contents Page No. Chapter 1 Introduction 1.1 Project Introduction 2 1.1.1 Main Theme 3 1.1.2 Scope of the Project 3 3 1.1.3 Objectives of the Project 1.2 Introduction to Organization 4 1.2.1 Organizational Setup and Structure 5 1.2.2 Main Aim and Work Environment 6 1.3 Future Prospectus 7 Chapter2 System Analysis 2.1 Feasibility Study 2.2 Existing System 8 2.3 Data Gathering 2.2.1 Questionnaires (or any technique used) 2.2.2 Sampling & Observations 9 10 2.2 Data Analysis 13 2.2.1 Data Flow Diagrams (DFDs) 14 2.2.2 Requirements Engineering 15 Chapter 3 System Design 3.1 Introduction to System Design 17 3.2 Proposed System and its Features 18 3.3 System Design using UML 19 3.3.1 Use Case Diagrams 19 3.3.2 Sequence Diagrams 20 3.4 Database Design 20 3.4.1 Entity Relationship Diagrams (ERDs) 21 Chapter 4 System Development 4.1 Introduction to System Development 25 4.2 Tool/Language Selection 25 4.3 Hardware for the System 26 4.4 Software Development & Implementation 26 4.4.1 Client Side Technology 27 4.4.1.1 HTML,CSS and Bootstrap 4.4.2 Server Side Technology 27 28 4.4.2.1 Php 28 4.5 Code/Algorithms of important modules 30 Chapter 5 User’s Guide 5.1 Input Forms (print-out with some description) 39 5.2 Reports (print-out with some description) 50 Chapter 6 Conclusion A one or two page summary of the tasks carried out in the project. 70 Chapter 1 Introduction 1.1. Project Introduction Fish execution relies upon various factors: natural variables, creation factors, and biotic components. In the offices, it is conceivable to control a portion of those components. Incandescent lamps are utilized over each tank to give brightening to the tanks. With light, it is conceivable to change the photoperiod and adjust the conduct of the fish to improve their exhibition. Additionally, channels can be utilized at the water access to take out the turbidity. In this way, the negative impacts of turbidity are diminished, improving fish execution. Different factors, for example, water temperature or water conductivity are not typically adjusted, despite the fact that it is conceivable to adjust them. Water temperature and conductivity can change the taking care of the necessities of fish kept in the tanks. Also, if fish are focused on their taking care of utilization falls and the exhibition diminishes. As of late, the improvement of various Information and Communication Technologies (ICT) related to the production of ease little sensors have made it conceivable to screen numerous procedures. Remote sensor systems (WSN) are a reasonable model as they are frequently utilized for farming purposes. Water quality checking and fish conduct observing are essential to improve the proficiency of aquiculture This project is mainly on building a smart fish pond monitoring system. Small-scale farmers running on small ponds could not afford to hire workers to man daily operations which usually consists of monitoring water levels, temperature and feeding fish. Bigger scale enterprises usually have some kinds of automation for water monitoring and replacement. These entities have to consider employing pH, Turbidity, water level And water temperature Sensor to ensure the water quality, health and growth of fish, sooner or later as their farms grow. This project identifies one of the sites, located in MNS university of agriculture Multan.. In this project, water, temperature, pH and Turbidity and water levels are measured and integrated with aerating and water supply pumps using Esp32. User could receive information at predetermined intervals on preferred communication or display gadgets as long as they have internet. Since integrating devices are comparatively not expensive; it usually consists of Arduino board, internet and relay frames and display system, farmer could source these components easily. A sample of two days measurements of temperature, pH Turbidity and water levels show that this farm has a high-quality water.. With this integration system, farmer need not hire worker at their site, consequently drive down operating costs and improve efficiency. . 1.1.1 Main Theme We have designed and developed a Smart Pond Systems primarily for balancing the ecosystem in the pond. Our device monitors water quality without affecting the natural habitats of pond. This system monitors turbidity, pH and temperature water level in the pond. The proposed device can operate with both GSM and LoRaWAN (long range wide area network). The information collected by the sensor device can be visualized and analyzed in the web application dashboard and mobile app. This system enables the management of multiple fish ponds from a single mobile device. Hence, by installing our smart pond device, the operators not only earn profits in terms of production but also reduces capital expenses required to manage the ponds. The proposed work supports remote monitoring of the fish farming system based on Internet of Things (IOT) for real-time monitor and control of a fish farming system. Objective is to provide an automatic fish farming monitoring system thereby saving time, money & power of the farmer. IOT technologies have revolutionized farm production in the country. In the fish farming process they have used various sensors like pH value, temperature and level sensors. By using these sensors all the work is automated and it will also be easy to monitor the fish farming remotely from other location. This project discussed physical measures such as temperature, level, turbidity of water using the A / D signal processing, via Wi-Fi wireless transfer to the terminal server. The data messages are analytically processed, sent to the server database and displayed on a computer terminal or smart phone. 1.1.2 Scope of the Project Though technology is intangible, we do notice the need of our attention towards the fisheries, fish farms. Hence, here is an idea of accumulating concepts of sensor data collection, wireless communication and most importantly Internet of Things into a system which can be called as Smart Fish Farms. By acquiring data from different objects on a platform, the data can be observed, and changes can be monitored. This research project aims at combining the physical aspects of a fish farm with the help of sensors and acquires the data to monitor the processes going on in its real time. The physical aspects include measuring water quality parameters such as temperature, turbidity, pH and level of water, being the most important factors for the fishes to breed. It also includes automatic recycling of water at regular interval of time, online streaming of the fish farm can be available to the farmers, to monitor their fish farms. The data collected can be used for analysis and thereby, changing the fish farm conditions when required. Hence, is termed as Smart Fish Farm Monitoring. All this reduces the time, effort and money for the farmers. Additionally, healthy and higher number of fishes are obtained as yield. Fish like many living organisms have specific tolerant range of various environmental parameters, thus fish farming of specific types of fish species requires certain conditions that have to be reached necessarily. Moreover, the people that work in the fish farming ponds have to be engaged in all day activities to maintain the living habitat of fish. Therefore, monitoring and taking actions to maintain the fish habitat for certain fish species inside the fishing ponds remotely is an important task. In this project, we present an upgrade on a functional Internet of Things (IoT) system for monitoring fish farming ponds. The IoT system consists of various sensors that measure important factors of the water like temperature, pH value and water level and the data from these sensors can be accessed by an application through firebase. 1.1.3 Future Scope: The degree behind structure up the customized fish reinforcing system is to reduce the manual fish supporting system which utilizes more work powers. Fish production has significant impacts to several factors in many countries for example it affects the economic especially countries that include seas and rivers and in influence the individual health as it is one of the high nutrients food. In addition to, increasing fish production may participate in overcoming the poverty issue in the world. This paper proposed smart system to monitor and control fish pond by using four different sensors to monitor the, water temperature, pH, turbidity and water level sensor. The Arduino platform is used and the esp32 devise is employed as microcontrollers. The system has the ability of collecting the sensors reading regularly to perform the proper task. In addition to, sending alert SMS to the fish farmer when critical situations occur by using GSM model. The results were promising because maintaining the fish environment in healthy conditions will affect positively in fish production in terms of number and size. 1.1.4 Objectives of the Project IoT enabled Smart Fish Farm Monitoring System has been designed and developed keeping the high risks associated with aquaculture farming in mind. With our real-time-monitoring capabilities, our farm monitoring system gives a dramatic boost to the Aquaculture farming yield and productivity. This research project aims at combining the physical aspects of a fish farm with the help of sensors and acquires the data to monitor the processes going on in its real time. The physical aspects include measuring water quality parameters such as temperature, Ph. Turbidity and Water level are the most important factors for the fishes to breed. Online streaming of the fish farm can be available to the farmers, to monitor their fish farms. The data collected can be used for analysis and thereby, changing the fish farm conditions when required. Hence, is termed as Smart Fish Farm Monitoring System. All this reduces the time, effort and money for the farmers. Additionally, healthy and higher number of fishes are obtained as yield. Because the quality of water available to the fish is one of the most important factors in fish production. Water quality directly affects feed efficiency, growth rates and overall health status of the fish In this project, water, temperature, pH, turbidity and water levels are measured and integrated with aerating and water supply pumps using Arduino. User could receive information at predetermined intervals on preferred communication (such as mobile app) or display gadgets if they are connected to internet. Objectives: 1. 2. 3. 4. 4. To monitor water level of fish pond To monitor turbidity of water To monitor water temperature To monitor pH level of fish pond water Recycling of water 1.2 Introduction to Organization MNS-University of Agriculture, Multan is an HEC recognized higher education institution that started its academic activities in 2012. During the short period of its existence, the University has made rapid progress in terms of expansion of its academic programs, students’ enrolment, physical infrastructure, campus network, and hiring of highly qualified and experienced academic and administrative staff. As a matter of fact, MNSUAM has been considered as one of the fastest growing academic institutions in the country. 1.2.1 Organizational Setup and Structure The University is located at Old Shujabad Road, Multan, neighboring several different wings and formations of Punjab Agriculture Department. The main campus comprises 180 acres of land, whereupon initially an Academic Block, Administration Block, Girls and Boys hostels, Guest House and some Staff residences are being constructed. For carrying out agricultural research activities, the University has established agricultural farms at the main campus as well as at Jalalpur Pirwala comprising 500 acres of land allotted to the University. Besides bachelors’ level degree programs in Agriculture, Agribusiness, Computer Science and Information Technology; the University also offers F.Sc. Pre-Agriculture, and M.Sc. and Ph.D in various disciplines of Agricultural Sciences. Recently, the University has started B.Sc. (Hons.) Poultry Science, B.Sc. (Hons.) Fisheries and Aquaculture, B.Sc. Agro-Industrial Engineering Technology, B.Sc. (Hons.) Human Nutrition and Dietetics and MS Computer Science programs. 1.2.2 Main Aim and Work Environment The primary objective of the University is to elevate socio-economic status of farmers and to provide education in various faculties of agriculture and other branches of knowledge, make provisions for research and development and service to the society. There is a strong sense of openness at MNSUAM as the University actively interacts with the surrounding institutions and society at large through continuous dialogues and knowledge exchange. With learning-based environment and new perspectives, the University aims to contribute to a better future. 1.2.3 Fish Farms There is a fisheries department in MNS University of agriculture Multan. This department has its own fish farms. The main fish farm is located at C block of MNSUAM. The other farm is located at the Jalal Pur peer wala. We implement this project at the C block of MNSUA in Multan. The main purpose of the organization is a research about the animals and fish. There a research work is done about the fish. Chapter2 System Analysis 2.1 Feasibility Study Feasibility study is the measurement of the developed information system is how beneficial or practical to the organization. So, this topic measured the feasibility. And we study the four major types of the feasibility study during the development of our project of Smart Fish Farm Monitoring System 2.1.1 Operational Feasibility: Operational feasibility is the measurement of the project about how the project supports the service provider and the customer who uses it. And it also answers the question “Is the project feasible to operate or not?” Smart Fish Farm Monitoring System fulfill all requirements required to monitors water quality and this project also provide feasibility for farmers to check water quality s status. This project record water parameters in web database. Moreover, this project also generates alert notification in the case of bad readings of parameters. In short, this project fulfills all requirements that it is intended for. 2.1.2 Technical Feasibility: Technical feasibility is the measurement of the technical solutions, technical resources, and technical expertise availability. It basically looks at what is practical and reasonable. Basically, this project is technically feasible as it can be used in fish farming and fish industry by playing a vital role in fish nutrition Technical expertise is required as well for this project because sensors readings are somewhat little complex to be taken but not much difficult. 2.1.3 Schedule Feasibility:. Schedule feasibility is the measurement of the schedule of the project that the time limit or the deadline for the completion of project is reasonable or not. So, we have must complete the project in the given time limit. It addresses that “Can we really finish the project with in the given deadline”. This project is Schedule feasible as it can be completed with little time limit. Schedule of the project includes following processes 1. 2. 3. 4. Configuring Hardware, microcontroller, and Sensors. Configuring Database and web server. Web application development. Alert Notification API configuration. All these processes must be done within certain defined time limit Schedule. 2.1.4 ECONOMIC FEASIBILITY: Economic feasibility is the measurement of the economic resources of the project. It measures the cost effectiveness of the project which is also called the cost and benefit analysis of the project. Our Project is not Much Costly to develop and not much costly to implement. By doing Cost & Benefit analysis of this project we came to know this project is economically feasible and can be implemented in industrial farm and even in small home Farms. During the development of our Project of Smart Fish Farm Monitoring System we have tried to address all the feasibility types. That’s why our project succeeds properly. 2.2 Existing System In the existing systems there are manual ways of measuring these parameters. Farmer had to go to the laboratories to find out required parameter to check the water quality and current condition of the pond water. In the existing system all the operations are done by the labour.it was a time waste hardworking. In existing system need to hire workers to maintain daily operations. 2.2.1 Flaws/Drawbacks In Existing Systems: There are many drawbacks in the existing system as the existing system takes a lot of time to create the checkout water quality as it is measured manually. And there is no proper way of recording the parameters to analyze pond and water condition. It has some drawbacks as follows. 1. 2. 3. More workers need to be hired. More effort requires to maintain daily operations. There is no proper way of recording the parameters to analyze pond and water condition. 2.3 Data Gathering During development of this project the basic information about fish pond is gathered from the Dr. Naheed Baano (Assitent Professor). She gave us basic information about pond and she told us about basic parameters (Ph. Temperature, Turbidity and water level) that they need to check water quality. we get some information from the research papers about water quality, temperature, turbidity of water. Water quality monitoring and forecasting plays an important role in modern intensive fish farming management. This paper describes an online water quality monitoring system for intensive fish culture in China, which is combined with web-server-embedded and mobile telecommunication technology. Based on historical data, this system is designed to forecast water quality with artificial neural networks (ANNs) and control the water quality in time to reduce catastrophic losses. The results demonstrate that multi-parametric, long-distance and online monitoring for water quality information can be accurately acquired and predicted by using this established monitoring system. 2.3.1 Questionnaires (or any technique used) The project has three main entities parameters , runtime display and mobile display so Analog pH Meter Kit SKU: SEN0169 , Digital Temperature Sensor (Dallas) – DS18B20 Atlas ultra-sonic sensor and turbidity sensor is used to find out these parameters These parameters will be displayed on the spot at lcd and user can also monitor these reading through web application 2.3.2 Sampling & Observations Documented sampling is show in figure 2.3.2 Figure 2.3.2 Figure 2.3.2 shows a prototype of project here we used an aquarium as a container/farm having four sensors connecting with esp32 through the jumper wires and a lcd is also connected with esp32 to display the gadgets on the spot and esp32 is also connect with server to for the remote or mobile monitoring . 2.4 Data Analysis 2.4.1 Data Flow Diagrams (Dfds) Figure 2.4.1 show the data flow Figure 2.2.1 show the data flow diagram of this project which show the flow of data. This figure shows that sensor gets the value from the water and transfers it toward the microcontroller(Esp32 connected with the battery then microcontroller configure that data and display it on the Lcd and server through Wi-Fi 2.4.2 Requirements Engineering: In the requirements engineering we will define the functional and the non-functional requirements of the developed Smart Fish Farm monitoring System. 2.4.2.1 Functional Requirements: The functional requirements are the basic requirements or things essentially the system will Do. There are following functional requirements 1. Every user login to system through user name and password. 2. System must verify username and password, and then login if person is valid user. 3. Manage all the reading taken through sensors. 4. Send the notification to user if can of any bad reading. 5. Show the readings on led at the spot. 6. Keep User Records Secure. 7. Visualize reading parameters graphically. 2.4.2.2 Non-Functional Requirements: Security: The system security must be enhanced and should be made difficult for others to hack the account. Each user have its unique username and the password for login. Therefore it must not be easy for the outsider to hack the account. The system will demand each user to use ID and difficult to crack password for login. Also, it’s more likely that the system will be used on a secure web localhost network it will be made safe for hacking. Reliability: This proposed system will be very reliable of doing it’s working in well efficient way. Reusability: The system can be used in future to further expansion of criterias. Also, the script language that is used in project development will be open source so functionality changing as per circumstances will not be a problem at all. Cost: For any sort of activity of this feature, a Pc or Android device will be required. Also, the network approach will be required Required hardware and software Sensors Analog pH Sensor for Arduino will be used to measure pH of water in this work. This pH sensor is extraordinarily expected for Arduino and has worked in helpful associations and highlights. Esp32 As the sensors we use in this work are uncommonly intended for Esp32, we use Esp32 for sensor procurement. Android Smartphone with MTP Any android cell phone with Media Transfer Protocol (MTP) can be utilized for this reason. MTP grants media documents to be traded molecularly to and from convenient gadgets. Web Service HTML, CSS, PHP, MYSQL Database will also be used in this project. Chapter 3 System Design 3.1Introduction to System Design System Design is actually the method of defining the Architecture, Modules, Interfaces, And components of the system. The system design has two basic types Logical design And the physical design. Logical design describes the features, outputs, inputs, files database and procedures etc. Physical design basically follows the logical design and it describes the working of the system. 3.2 Proposed System and its Features The objective of the proposed system is to overcome the drawbacks of the existing system The Smart Fish Farm Monitoring System is user friendly Web Application and iot based system and the main objective of this system is its simplicity of the design of the application and its hardware integration. The system requires affordable system resources and it can work over almost all configurations. The data can be retrieved easily, and the user interface of the application is user friendly. The data processing is very fast, and the data is protected. The Smart Fish Farm Monitoring System is proposed with the use of a hardware devices along with sensors that are used to take readings from sensors and Ethernet connection that send these readings over web server. The system uses web application which display these readings graphically. In the case of bad readings the notification alert is send to the consultant user. Automatic remote monitoring and computer-controlled intensive culture is the future trend in aquaculture. In modern aquaculture management, water quality monitoring plays an important role. Appropriate control of water quality to keep the concentration of the water environment parameters in the optimal range can * Corresponding author. 218 D. Li and S. Liu enhance the fish growth rate, impact dietary utilization and reduce the occurrence of large-scale fish diseases. Without gathering information regarding physical and chemical parameters of water quality together with the related ecological factors it is almost impossible to perform the appropriate water quality control at the right time and in the right place. Advantages Of The Proposed System: Smart Fish Farm Monitoring System is an web and iot based Application. The system design and implementation are very easy. The main advantages of the proposed system are: 1. 2. 3. 4. 5. 6. Security of data. Ensure data accuracy. System efficiency is greater. User friendly and attractive. Time consumption is less. Alert Notification Notication. 3.3 System Design using UML 4.3.1 Use Case Diagrams Figure 3.3.1 Use case diagram 4.3.2 Sequence Diagrams Figure 3.3.2 Sequence Diagrams 3.4 Database Design 3.4.1 Entity Relationship Diagrams (ERDs) Figure 3.4.1 Entity Relationship Diagram Chapter 4 System Development 4.1 Introduction to System Development Systems development is the process of defining, designing, testing, and implementing a new software application or program. It could include the internal development of customized systems, the creation of database systems, or the acquisition of third party developed software. 4.2 Tool/Language Selection 1. Tool for Web development 2. Languages for app development 3. Database 4. Tool for Android development Notepad++ Html, Css, bootstrap, javascript, and Php PhpMyAdmin. Java 5. Tool for Hardware Configuration Arduino IDE 6. Tool for documentation MS Word 4.3 Hardware for the System We are using Android phone And Pc for user side to monitor the parameters and to observe readings data. We are using Server for storing the readings. We are using Micro Controller Esp32 and Sensors (temperature sensor (Dallas) – ds18b20, analog ph. meter kit sku: sen0169, atlas scientific do sensor) to take readings from Water and these readings are sent to web server via GET HTTP Request from Ethernet Shield. Following hardware component we are using in our project 1. Microcontroller ESP32 is a series of low-cost, low-power system on a chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth. ... ESP32 is created and developed by Espressif Systems, a Shanghaibased Chinese company, and is manufactured by TSMC using their 40 nm process 2. Temprature sensor DS18B20 This precision thermistor is a solid state device which changes its resistance inversely proportional with temperature from 150,000 Ohms at the low end to 1,500 Ohms at the high end. Temperature Sensors measure the amount of heat energy or even coldness that is generated by an object or system, allowing us to “sense” or detect any physical change to that temperature producing either an analogue or digital output. 3. Turbidity Sensor The gravity arduino turbidity sensor detects water quality by measuring the levels of turbidity, or the opaqueness. It uses light to detect suspended particles in water by measuring the light transmittance and scattering rate, which changes with the amount of total suspended solids (TSS) in water 4. Ultrasonic Sensor The ultrasonic sensor is a 4 stick hinder, whose stick names are Vcc, Trigger, Echo and Ground individually. This sensor is a famous sensor utilized in numerous applications, where separation or sensitivity is needed. The block consists of two eyes, such as an ultrasonic transmitter and preprogrammable recipients. The sensor ultrasonic transmitter works with a simple high school formula that passes an ultrasonic wave, and this reflected wave ultrasonic receiver block is observed when the wave travels the air and it senses the reaction when it opposes any substance 5. Ph Sensor A pH meter is a logical instrument estimating hydrogen-particle work in water-based arrangements, its causticity or alkalinity. pH meter estimates the distinction in power between a PHH and one reference voltage, so the pH meter is here and there alluded to as a "metric pH meter". The difference in electric energy is related to the acidity of the solution or the pH. The pH meter is used in various applications ranging from laboratory tests to quality control. 6. LCD 16 *4 16X4 LCD can be used to display 16 characters in 4 rows. It has the ability to display numbers, Characters and graphics. It has an inbuilt refreshing circuit, thereby relieving the CPU from the task of Refreshing. LCD discussed has total of 14 pins 7. Jumper wires Jumper Wires. Jumper wires are used for making connections between items on your breadboard and your Arduino's header pins. Buy jumper wires from Amazon, SparkFun, Adafruit, or Newark. 8. 12v Dc battery A 12V battery means that the voltage that is supplied under nominal load is 12V, that's it. Different batteries Can have different maximal current and thus different maximal Power. 4.4 Software Development & Implementation We have used prototype software development model methodology in our because of following reasons It reduces time and costs Prototyping improves the quality of the specifications and requirements provided to customers. The following pointers explain the typical uses of a porotype model: 1) When prototype is shown to the user, he gets a proper clarity and 'feel' of the functionality of the software and he can suggest changes and modifications. 2) This type of approach of developing the software is used for non-IT-literate people. 3) When client is not confident about the developer's capabilities, he asks for a small prototype to be built. Based on this model, he judges capabilities of developer. 4) Sometimes it helps to demonstrate the concept to prospective investors to get funding for project. 5) It reduces risk of failure, as potential risks can be identified early and mitigation steps can be taken. 6) Iteration between development team and client provides a very good and conductive environment during project. 7) Time required to complete the project after getting final the SRS reduces, since the developer has a better idea about how he should approach the project. ADVANTAGES The customers get to see the partial product early in the life cycle. This ensures a greater level of customer satisfaction and comfort. New requirements can be easily accommodated as there is scope for refinement. Missing functionalities can be easily figured out. Errors can be detected much earlier there by saving a lot of effort and cost, besides enhancing the quality of the software. The developed prototype can be reused by the developer for more complicated projects in the future. Flexibility in design. 4.4.1 Client Side Technology In Client-Side Technology we are using Html, Css , Bootstrap and for the designing purpose and we are using Php and JavaScript to perform functionality and to build application. 4.4.1.1 Html, Css and Bootstrap Html (Hypertext Markup Language) Hypertext Markup Language is the most basic building block of the Web. It defines the meaning and structure of web content. Other technologies besides HTML are generally used to describe a web page's appearance/presentation or functionality/behavior "Hypertext" refers to links that connect web pages to one another, either within a single website or between websites. Links are a fundamental aspect of the Web. By uploading content to the Internet and linking it to pages created by other people, you become an active participant in the World Wide Web. Css (Cascading Style Sheets) CSS is designed to enable the separation of presentation and content, including layout, colors, and fonts. This separation can improve content accessibility, provide more flexibility and control in the specification of presentation characteristics, enable multiple web pages to share formatting by specifying the relevant CSS in a separate .css file, and reduce complexity and repetition in the structural content. Bootstrap Bootstrap is a web framework that focuses on simplifying the development of informative web pages .The primary purpose of adding it to a web project is to apply Bootstrap's choices of color, size, font and layout to that project. As such, the primary factor is whether the developers in charge find those choices to their liking. Once added to a project, Bootstrap provides basic style definitions for all Html elements. The result is a uniform appearance for prose, tables and form elements across web browsers. In addition, developers can take advantage of Css classes defined in Bootstrap to further customize the appearance of their contents. For example, Bootstrap has provisioned for light- and dark-colored tables, page headings, more prominent pull quotes, and text with a highlight. 4.4.2 Server Side Technology In server side we are using PHP for functionality. In this project we used Php is used to get the data from the sever and perform the particular function like alarms notification 4.4.2.1 PHP php is a server side scripting language. that is used to develop static websites or dynamic websites or web applications. php stands for hypertext pre-processor, that earlier stood for personal home pages.php scripts can only be interpreted on a server that has php installed. The client computers accessing the php scripts require a web browser only. 4.4.2.3 Android (JAVA) Java is a programming language first released by Sun Microsystems back in 1995. It can be found on many different types of devices from smartphones, to mainframe computers. You can use it on your desktop PC and even on the Raspberry Pi. Java doesn’t compile to native processor code but rather it relies on a “virtual machine” which understands an intermediate format called Java bytecode. Each platform that runs Java needs a virtual machine (VM) implementation. On Android the original VM is called Dalvik. Google has also started previewing its next generation VM called ART. The job of these virtual machines is to interpret the bytecode, which is really just a set of instructions similar to the machine code found in CPUs, and execute the program on the processor. The VMs use a variety of technologies including just-in-time compilation (JIT) and ahead-of-time compilation (AOT) to speed up the processes. 4.4 Code/Algorithms of important modules I. Turbidity this code is used to measure the turbidity ofwater through turbidity Sensor *********/ int lcd = 14; void setup() { Serial.begin(9600); //Baud rate: 9600 } void loop() { int sensorValue = analogRead(lcd);// read the input on analog pin 0: float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 1023) to a voltage (0 - 5V): Serial.println(voltage); // print out the value you read: delay(1000); } II. Temprature /********* this code is used to measure the water temprature through Dallas temprature sensor *********/ #include <OneWire.h> #include <DallasTemperature.h> // GPIO where the DS18B20 is connected to const int oneWireBus = 23; // Setup a oneWire instance to communicate with any OneWire devices OneWire oneWire(oneWireBus); // Pass our oneWire reference to Dallas Temperature sensor DallasTemperature sensors(&oneWire); void setup() { // Start the Serial Monitor Serial.begin(9600); // Start the DS18B20 sensor sensors.begin(); } void loop() { sensors.requestTemperatures(); float temperatureC = sensors.getTempCByIndex(0); Serial.print(temperatureC); delay(1000); } III. Ultrasonic Sensor /********* this code is used to measure the water level through Ultrasonic Sensor *********/ #include <UltrasonicSensor.h> UltrasonicSensor ultrasonic(18, 19); void setup() { Serial.begin(9600); int distance = 22; ultrasonic.setTemperature(distance); } void loop() { int level = 0.393701; inches = 12 ; int distance = ultrasonic.distanceInCentimeters(); distance = level * distance; distance = inches - distance ; Serial.print("Water Level: "); Serial.print(distance); Serial.println(" inch"); } IV. Lcd /********* this code is used to show parameters of sensor on lcd *********/ #include <LiquidCrystal_I2C.h> // set the LCD number of columns and rows int lcdColumns = 16; int lcdRows = 4; // set LCD address, number of columns and rows // if you don't know your display address, run an I2C scanner sketch LiquidCrystal_I2C lcd(0x27, lcdColumns, lcdRows); void setup(){ // initialize LCD lcd.init(); // turn on LCD backlight lcd.backlight(); } void loop(){ // set cursor to first column, first row lcd.setCursor(0, 0); // print message lcd.print("Smart Fish Farm Monitoring System "); delay(1000); // clears the display to print new message lcd.clear(); // set cursor to first column, second row lcd.setCursor(0,1); lcd.print("Supervised By"); lcd.setCursor(2,2); lcd.print("Dr Aysha Hakim"); delay(1000); lcd.clear(); } Complete cod of Project #define BLYNK_PRINT Serial #include <WiFi.h> #include <WiFiClient.h> #include <BlynkSimpleEsp32.h> // You should get Auth Token in the Blynk App. // Go to the Project Settings (nut icon). char auth[] = "1Tj5QN0-q-kUfrWrAPsIPPdFCJtTpgAt"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "password"; char pass[] = "razakhan101"; #include <Wire.h> #include <LiquidCrystal_I2C.h> // set the LCD number of columns and rows LiquidCrystal_I2C lcd(0x27, 16, 4);; #include <UltrasonicSensor.h> UltrasonicSensor ultrasonic(18, 19); #include <OneWire.h> #include <DallasTemperature.h> // GPIO where the DS18B20 is connected to const int oneWireBus = 23; // Setup a oneWire instance to communicate with any OneWire devices OneWire oneWire(oneWireBus); // Pass our oneWire reference to Dallas Temperature sensor DallasTemperature sensors(&oneWire); int turbidity = 14; void setup() { lcd.begin(); // Debug console Serial.begin(9600); Blynk.begin(auth, ssid, pass); Serial.begin(9600); // initialize LCD // turn on LCD backlight lcd.backlight(); int distance = 22; ultrasonic.setTemperature(distance); } void loop() { Blynk.run(); sensors.requestTemperatures(); float temperatureC = sensors.getTempCByIndex(0); Serial.print(temperatureC); delay(1000); int sensorValue = analogRead(turbidity);// read the input on analog pin 0: float voltage = sensorValue * (5.0 / 1024.0); // Convert the analog reading (which goes from 0 1023) to a voltage (0 - 5V): Serial.println(voltage); // print out the value you read: delay(1000); int level = 0.393701 ; int inches = 12 ; int distance = ultrasonic.distanceInCentimeters(); distance = level * distance; distance = inches - distance ; Serial.print("Water Level: "); Serial.print(distance); Serial.println(" inch"); Blynk.virtualWrite(23, temperatureC); Blynk.virtualWrite(19, distance); delay(1000); Blynk.virtualWrite(14, voltage); lcd.setCursor(0, 0); lcd.print("Smart Fish Pond "); lcd.setCursor(0, 1); lcd.print("Temprature : "); lcd.println(temperatureC); lcd.setCursor(0, 0); lcd.print("Voltage : "); lcd.println(voltage); lcd.setCursor(0, 1); lcd.print("Level : "); lcd.println(distance); delay(1000); lcd.clear(); lcd.setCursor(0, 0); lcd.print("Smart Fish"); lcd.setCursor(0, 1); lcd.print("Farm Monitoring "); lcd.setCursor(3, 2); lcd.print(" System "); delay(1000); lcd.clear(); lcd.setCursor(0,0); lcd.print("Supervised By"); lcd.setCursor(2,1); lcd.print("Dr Aysha Hakim"); delay(1000); lcd.clear(); lcd.setCursor(0, 0); lcd.print("Represented By"); lcd.setCursor(4, 1); lcd.print("Raza shah "); lcd.setCursor(1, 1); lcd.print("Amir Afzal "); lcd.setCursor(1, 2); lcd.print("M.shahid "); delay(1000); lcd.clear(); } Chapter 5 User’s Guide 5.1 App interface Ou project smart fish farm monitoring system is a user friendly we created a simple android app which have three entities that show the sensor readings Figure 5.1 show front End of android 5.2 Lcd Display For the user satisfaction we connect lcd on the our project board for the on spot visuals reading of sensor will display on the lcd as a real time display Chapter 6 Conclusion This project is mainly on building a smart fish farm monitoring system. Small-scale farmers running on small ponds could not afford to hire workers to man daily operations which usually consists of monitoring water levels, temperature and feeding fish. Through this a former can get a notification on his phone and display data on the screen. It reduces risk of failure, as potential risks can be identified early, and mitigation steps can be taken. This ensures a greater level of customer satisfaction and comfort. Functionalities can be easily figured out. Errors can be detected much earlier there by saving a lot of effort and cost, besides enhancing the quality of the software. The developed prototype can be reused by the developer for more complicated projects in the future. References Kiruthika, S.U., Raja, S.K.S., Jaichandran, R., 2017. IoT based automation of fish farming. Journal of Advanced Research in Dynamical and Control Systems Durga, S.B., Nirosha, K., Priyanka, P., Dhanalaxmi, B., 2017. GSM based Fish Monitoring System Using IOT, International Journal of Mechanical Engineering and Technology 8(7), pp. 1094–1101. Francis, E. I., Olowoleni O.J., Ibhaze, A.E., Oni, O., 2017. IoT Enabled Real-Time Fishpond Management System. Fourie, C.M., Bhatt, D.V., Silva, B.J., Kumar, A., Hancke, G.P., 2017. A solar-powered fish pond management system for fish farming conservation. Industrial Electronics (ISIE), 2017 IEEE 26th International Symposium on, pp. 2021-2026. IEEE. DS18B20 Datasheet specification of the temperature sensors, https://cdn.sparkfun.com/datasheets/Sensors/Temp/DS18B20.pdf, Water Level Sensors Float Switch P45 specifications, http://www.dealdx.net/dealdx/viewitem/436952-pp-liquid-water-level-sensor-rightangle-float-switch-p45-white.html, https://www.dfrobot.com/wiki/index.php/PH_meter(SKU:_SEN0161),. https://www.dfrobot.com/wiki/index.php/Gravity:_Analog_Turbidity_ Sensor