Tech Final Report
Tech Final Report
Technical Seminar
Report On
“Wastewater Treatment Using IOT and Cloud”
Submitted by
AKSHAY KUMAR P (1EE20CS001)
In partial fulfillment of
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
CERTIFICATE
Inspiration and guidance are valuable in all aspects of life, especially what is
academic. “Experience is the best teacher”, is an old saying. The satisfaction and
pleasure that accompany the gain of experience would be incomplete without
mentioning the people who made it possible.
We are extremely thankful and grateful to our guide Prof. Pooja M V,
Assistant Professor, Department of Computer Science and Engineering. She
being our guide has taken keen interest in the technical seminar work by providing
facilities and guidance. We are indebted to our guide for her inspiration, support
and kindness showered throughout the course.
We express our heartfelt gratitude to our technical seminar Co-Ordinator
Prof. Chaitra, Assistant Professor, Department of Computer Science and
Engineering for providing the support for making our technical seminar work
possible.
We express our profound sense of gratitude to Dr. Lavanya N L, HOD,
Department of Computer Science and Engineering for giving us the opportunity
to pursue our interest in our technical seminar work.
Nevertheless, we express heartfelt thanks towards our parents, friends and
teaching and non-teaching staff of our college for their kind co-operation and
encouragement which helped us in the completion of our technical seminar work.
Wastewater treatment is considered the most important process for reducing pollutants in
wastewater to levels that nature can cope with. At many sewages treatment plants, industrial
waste causes more difficulties in the treatment process than any other single problem where the
plant operators must deal with. These plants may not be designed to handle these types of wastes
and the accelerated deterioration of sewage treatment plant structures. In this paper, we propose a
new industrial IoT cloud-based model for real-time wastewater monitoring and controlling. The
proposed system monitors the power of hydrogen (pH) and temperature parameters from the
wastewater inlet that will be treated in the wastewater treatment plant, thereby avoiding
impermissible industrial wastewater that the plant cannot handle. The system collects and
uploads real-time sensor readings to the cloud via an IIoT Wi-Fi Module. Additionally, it reports
observed or identified unexpected industrial wastewater inlets via SMS notifications and alarms
and controls the valves of the gates. This is needed to change the path of the water to the
industrial wastewater treatment plant that can treat this type of waste. Experimental work shows
the effectiveness of the proposed system compared to related work.
CONTENTS
1 Introduction………………………………………………………………. 1
1.1 Wastewater Treatment……………………………………………… 1
1.2 Industrial Internet of Things (IIOT)………………………………… 2
2 Literature Survey………………………………………………………… 3
3 Methodologies……………………………………………………………... 6
3.1 System Overview…………………………………………………… 6
3.2 System Architecture………………………………………………… 8
3.3 The Hardware Parts…………………………………………………. 8
3.4 The Software Components………………………………………….. 10
3.5 IoT Cloud…………………………………………………………… 10
3.6 RESTful Http Interface……………………………………………... 11
3.7 SMS Service………………………………………………………… 12
3.8 Data Analysis and Reporting Service………………………………. 12
3.9 Experimental Results……………………………………………….. 14
4 Conclusions And Future Enhancements………………………………... 17
List of Figures
SL No Figures Page No
1 Figure 1: Proposed system overview………………………... 6
2 Figure 2: General environment of the IoT proposed system… 7
3 Figure 3: Functional block diagram of the proposed system... 7
4 Figure 4: Proposed System Follow Chart…………………… 7
5 Figure 5: System Architecture………………………………. 8
6 Figure 6: Nodemcu Esp8266………………………………… 8
7 Figure 7: Sim 800l…………………………………………… 9
8 Figure 8: DS18B20………………………………………….. 9
9 Figure 9: Analog pH sensor…………………………………. 9
10 Figure 10: ADS1115 ADC…………………………………... 10
11 Figure 11: RESTful interface design………………………… 11
12 Figure 12: Checking The Status of IOT Modules…………… 12
13 Figure 13: A web page for pH reports………………………. 13
14 Figure 14: Monthly reports of pH values for two different
locations……………………………………………………... 13
15 Figure 15: Daily report of pH values………………………... 14
16 Figure 16: Overview of the dashboard at C9 wastewater
treatment plant……………………………………………….. 14
17 Figure 17: Live graph of uploaded data……………………... 15
18 Figure 18: Gates & alarms control…………………………... 16
WASTEWATER TREATMENT USING IOT AND CLOUD
CHAPTER 1
INTRODUCTION
1.1. Wastewater Treatment
Wastewater treatment is a method of improving and purifying water by removing some or all
pollutants, allowing it to be reused or returned to the environment. Surface water, such as rivers,
the ocean, or groundwater are both possible destinations for discharge. When untreated or
inadequately treated wastewater is discharged into water sources, it pollutes the water degrading
the quality of the water. Egyptian authorities enacted Law 48 (1982) to safeguard the Nile River
and waterways from pollution. According to the law, which is recognized by Decree No. 8-
1983, only treated effluents are permitted to enter and be released into waterways.
The requirements and specifications for issuing the license, as well as the logistics of
applications, are clearly defined. However, due to a shortage of infrastructure, technical and
institutional expertise, as well as financial resources, Egypt, like many other developing
countries, continues to release untreated wastewater. In addition, highly efficient wastewater
treatment technologies are in short supply, as are water quality monitoring and control systems.
Biological treatment is now used in most wastewater treatment plants. Biological treatment is
an essential part of any wastewater treatment system.
It is a technology that cleans water primarily using bacteria, protozoa, and maybe other
specialist microorganisms. The benefit of biological therapy over other treatment techniques
such as chemical oxidation, thermal oxidation, and so on is evident, both in terms of capital
investment and operating costs. As a result, it has solidified its position in any integrated
wastewater treatment plant. The discharge of industrial waste into municipal sewerage systems
causes some objectionable effects on the biological treatment operation by affecting bacterial
growth which is one of the main factors of the biological treatment success. Temperature, pH
value, oxygen, and toxic substances are the most critical elements that influence bacterial
growth rate.
The pH scale is a logarithmic scale that measures the inverse concentration of hydrogen ions.
Lower pH readings indicate increased acidity, whereas a high pH indicates increased alkalinity
(pH of 7 is neutral). To maintain beneficial organisms, the pH of wastewater should be kept
between 6 and 9. Acid, cleaning chemicals, and other pH-altering substances can render
wastewater treatment ineffective. Due to the effects of temperature, accurate measurement and
reporting of pH data have been a long-standing issue. The temperature of wastewater is essential
for two factors: (1) temperature affects biological processes, and (2) temperature has an impact
on chemical processes, reaction proportions, and aquatic life. Because of molecular
dissociation, as the temperature of any solution rises, the viscosity reduces, the mobility of its
ions in the solution increases, and the number of ions in the solution rises. Since pH translates
the values of the concentration of the hydrogen ion into numbers between 0 and 14, so any
change within the temperature of wastewater causes a change in pH. Most biological treatment
systems operate in the 20◦C to 40◦C temperature range. Aeration tanks and percolating filters
operate at a temperature of the wastewater that ranges from 12◦C to 25◦C, even though air
temperature and airflow rate have a major impact on heat loss in percolating filters. The
biological activity and metabolic increase as the temperature increases, resulting in faster
elimination of substrate. Increased metabolism at higher temperatures, on the other hand, may
cause oxygen limitations.
CHAPTER 2
LITERATURE SURVEY
The application of IoT and IIoT in environmental remote monitoring and controlling,
especially in water and wastewater quality systems, has been discussed in many research
papers. The following shows other existing IoT and IIoT middleware solutions for remote
monitoring and controlling water and wastewater quality. In a low-cost IoT-based water level
monitoring system was presented in real-time. The water data collected from ultrasonic sensors
was stored on a cloud server (bespoke). A web-based remote dashboard displays the results of
the water measurements, also the presented system used a buzzer alarm and a Twitter handle as
a part of the alerts system. The presented system monitors the level of the tank of water and
alerts users without autocontrolling the water follow into the tank and the reading of the
ultrasonic sensors may not give high accuracy of water level.
A smart water system was developed to prevent water overflow or leakage with auto water
pump on/off. The authors used laser sensors for water level detection and the sensors values
transmitted through HC12 to the Adarfruit cloud platform via a Wi-Fi module. The cloud
platform was designed in such a way that would show the graphical representation of water
level and instantaneous value of the current status of water. an implementation of IoT
technology to overcome the complexity and the high cost of the existing systems by using a
Wi-Fi module to send the water parameter data to the server, which can then be displayed on a
webserver. The presented system reduced power consumption depending on the time interval
of sense. However, this approach displays the data on the webserver and LCD without a
graphical representation of these data by time. a complete smart monitoring water quality
detecting system is presented. The system is floated and tested at ‘‘Tasik UTeM’’ and the data
was collected in both offline and online measurements in two assessments. A ‘‘WeMos D1’’
Wi-Fi module is used to transmit the collected sensing data to the ‘‘ubidots’’ platform database
for the online assessment. However, their presented system is based on two methods for
recording the data in the database via the ubidots platform and a graphical representation via
another platform ‘‘Wix Webpage’’ for only two parameters using pH and turbidity sensors.
‘‘Raspberry pi’’, as a communication module for remote monitoring and control, is used to
develop a smart industrial system to detect abnormal behaviour and equipment failure. Their
proposed architecture is flexible to extend to a wide range of IoT-based applications in which
the analysis of collected data sets could enable fast and precise decision-making. the authors
proposed a new SCADA system for real-time water quality monitoring that integrates with IoT
technology. The data analytics is handled by the SCADA server, which then generates reports
for the web and a mobile app. Meanwhile, they aimed to overcome the disadvantages of the
current SCADA. systems such as the difficulty of adding a new sensor due to the wired network
between the SCADA and the Plc controller. Arduino ‘‘Atmega 328’ microcontroller and GSM
modem were used. The system is small in size, lightweight, and low in cost, but it could be
more effective if it could automate controlling activities through the system. To implement the
IoT operations, the project used five different types of sensors to sense and monitor temperature,
light intensity, air quality, humidity, heat, rain-sensing, sea level pressure, and barometric
pressure in the surrounding area. An ESP-8266 Wi-Fi module with a ThingSpeak cloud
configuration enabled the system’s IoT capability. With the ability to execute MATLAB code
in the ThingSpeak channel, the data was read from the ThingSpeak channel for analysis or
visualization in MATLAB. Also, data could be written to the ThingSpeak channel from
MATLAB and visualized on the channel.
They presented real-time pH monitoring and control systems of local wastewater using IoT for
gardening and agriculture applications. The system was programmed to use a solenoid valve
that operates automatically. For online monitoring of water pH and temperature, the Arduino
Mega 2560 and a Wi-Fi transceiver (Wi-Fi shield) were utilized, as well as an android app. The
microcontroller and Wi-Fi module can transmit and receive instructions within a 100-foot
interior limit and 300-foot LOS communication range if needed. to monitor parameters of
wastewater discharged into water sources in the Nduruma sub-watersheds, real-time online
monitoring integrated IoT was proposed. The proposed prototype’s IoT capability was enabled
by a ThingSpeak API cloud to upload sensor data via GPRS internet connectivity. The telerivet
messaging platform was utilized in this prototype to provide local communities with a way to
send SMS warnings on water pollution that has been seen or detected.
using IoT, a smart wastewater online monitoring system was built to remotely monitor
wastewater information and identify harmful effects. The authors used five smart sensors to
measure the primary five water parameters of heating value, acidity or alkalinity percentage,
total suspended particle (TSP), turbidity, and total dissolved solids (TSS). Besides,
microcontroller technology involving a GSM-GPRS module was used to send the collected data
to the webserver through a modem together with a specific website for monitoring wastewater
data.
CHAPTER 3
METHODOLOGIES
3.1 System Overview
Figure.1 depicts an overview of the proposed framework for monitoring and controlling
industrial wastewater discharged into wastewater treatment plants by collecting data on
wastewater parameters such as temperature and pH. The collected data is uploaded to the
webserver which can be retrieved from anywhere in the world. As industrial wastewater is
detected, an SMS warning is triggered and sent to the monitoring center. At the same time, the
IoT Module can regulate the solenoid valves to close the inlet gates and redirect the water to a
treatment plant for industrial wastewater. The collected data for wastewater parameters
(temperature and pH) from wastewater pumping stations to wastewater treatment plants is sent
to a database server. The server aids in the prediction of the time of discharge of industrial
wastewater to the treatment plant as well as the region where the wastewater is discharged, and
this is where the government steps in to act against this infraction.
Figure.2 shows the proposed system’s general environment, which includes three parts: an IoT
sensing device,an IoT gateway device, and an IoT cloud platform. The sensor’s data will be
sent to the IoT gateway. After receiving the data, the IoT gateway device sends it to the IoT
cloud platform over a wireless or cellular network connection. Finally, the IoT cloud platform
receives the sensor data and stores it in its database for advanced processing of data or built
application. With the help of an IoT gateway, the IoT cloud could receive a specific command
from users via an application programming interface (API) and transfer it to an IoT device.
The proposed system uses NodeMcu Esp8266 to send data to the cloud via Wi-Fi connection
and it is programmed via Arduino IDE to handle the process of controlling the measured data.
Figure 8: DS18B20.
4) Analog pH Sensor
The pH of a solution is measured using an analog pH meter, which reflects the acidity or
alkalinity. It’s commonly utilized in aquaponics, aquaculture, and environmental water testing.
The data from the pH sensor is collected on the analog pin of the NodeMcu using the BNC
adaptor.
2) VISUAL STUDIO
Visual Studio is a useful tool for writing, debugging, and creating code, and also publishing
apps. Beyond the basic editor and debugger included in most IDEs, Visual Studio includes
compilers, code completion tools, graphical designers, and a variety of additional capabilities
to make the software development process easier. The proposed system uses the Visual Studio
platform to develop a web form for monitoring real-time data and controlling the equipment
remotely via the cloud, as well as building reports for data analysis.
those accounts for a wide range of network communication protocols as well as security and
data management challenges, a cloud software platform is required. We were aware of certain
IoT cloud services, such as Blynk, Thingspeak, Google Cloud Platform, Exosite IoT Platform,
Ayla IoT Platform. These have two major drawbacks: cost and complexity. One has to pay for
those services, and also needs to learn how to implement all of their services, as well as their
APIs and possibly a bunch of other stuff that doesn’t seem required by us to be able to just
interchange bytes between devices. We just want something a little easier, something we can
handle ourselves. The main reason is that we want to do it ourselves, we don’t want to rely on
a third party to connect our devices, and because we’ll be designing the code and hardware for
our devices, it seems like a good idea to establish our ways of connecting them as IoT devices
as well. The second reason is that it is important to learn how to do it. We will have a better
knowledge of the IoT world if we know everything, we need to know to get there. Also, because
we are quite familiar with php, C#, and Asp.net, we are unafraid to implement anything in C#
or other programming languages for our embedded devices, or to implement whatever is
required to meet our goals.
the data and reviewing the graph of different values at different times, we can predict future
events.
The proposed system provides a set of reports based on a set of criteria that will facilitate the
search and make data analysis easier and faster, as well as determine the extent to which they
are beneficial. For example, the user can create a Report for pH data based on the location, the
date selected, daily and monthly data (see Figure. 13).
Figure. 14 shows the monthly report of Average (pH values/day) of two different locations.
Figure. 15 show the daily report of (pH values/day) of the WWTPC9 Location and All data of
selected date.
The Web Server is used to visualize the uploaded sensor data. Because the system is configured
in continuous mode, it is refreshed every 5 seconds, the data is monitored often and displayed
on every action. The sensing period has been set at fifteen minutes; however, the monitoring
interval can be modified as needed. As shown in Fig. 17. The obtained values will be graphed
and stored for future use. Web server live graphs plot live pH and Temperature sensors data as
they are being uploaded to the database via IoT device.
The variations of the sensor’s measurements of the monitored parameters (pH and Temperature)
with time for the pumping stations may be seen in Fig. 17. Also, the monitoring person can
control the gates (OFF/ON the inlet gates) of the wastewater treatment plant to change the path
of the industrial wastewater to the industrial wastewater treatment plant (see Figure. 18).
Because of the high follow of the discharged industrial wastewater, the sensors in the treatment
plant detected it and the actions were taken as a result (OFF gates, Buzzer alarm, Red Led, SMS
notification to the supervisor, alarm notification on the dashboard for the monitoring person).
The notification alarms (SMS, web notification) from Pumping stations can allow the
supervisor to predict the time of the arriving water depending on the follow and the distance
between the pumping station and the treatment plant, so he can monitor the inlet water by visual
and detecting the color of water which can tell us by experience the type of industrial water.
CHAPTER 4
REFERENCES
[1] River Nile Protection and Development Project Phase II Central Laboratory for
Environmental Quality Monitoring Environmental Pollution and Legislative Regulations,
Central Laboratory for Environmental Quality Monitoring, Egypt, 1982.
[2] UN-Water, The United Nations World Water Development Report 2017, Wastewater the
Untapped Resource, United Nations World Water Assessment Programme, Perugia, Italy,
2017.
[3] Y. C. Ho, K. Y. Show, X. X. Guo, I. Norli, F. M. Alkarkhi, and N. Mor, ‘‘Industrial
discharge and their effect to the environment,’’ in Industrial Waste. Rijeka, Croatia: InTech,
2012.
[4] A. Mittal. (2011). Biological wastewater treatment. Water Today Pvt Ltd. Accessed: Nov.
20, 2021.
[5] N. P. Cheremisinoff, ‘‘Biological treatment of industrial wastes: Mutant bacteria,’’ in
Biotechnology for Waste and Wastewater Treatment, N. P. Cheremisinoff, Ed. Norwich, NY,
USA: William Andrew, 1997.
[6] The pH Scale Chemistry LibreTexts. Accessed: Oct. 10, 2021. [Online].
[7] Effect of Temperature on pH of Wastewater of Phagwara. Accessed: Aug. 21, 2021.
[Online].
[8] A. Sajid, H. Abbas, and K. Saleem, ‘‘Cloud-assisted IoT-based SCADA systems security:
A review of the state of the art and future challenges,’ IEEE Access, vol. 4, pp. 1375–1384,
2016.
[9] S. Pasha, ‘‘Thingspeak based sensing and monitoring system for IoT with MATLAB
analysis,” Int. J. New Technol. Res., vol. 2, pp. 19–23, Jun. 2016. [30] N. Khatri, A. Sharma,
K. K. Khatri, and G. D. Sharma, ‘‘An IoT-based innovative real-time pH monitoring and control
of municipal wastewater for agriculture and gardening,’’ Smart Innov. Syst. Technol., vol. 79,
pp. 353–362, Jan. 2018.