<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">WSN</journal-id><journal-title-group><journal-title>Wireless Sensor Network</journal-title></journal-title-group><issn pub-type="epub">1945-3078</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/wsn.2017.98016</article-id><article-id pub-id-type="publisher-id">WSN-78589</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Computer Science&amp;Communications</subject></subj-group></article-categories><title-group><article-title>
 
 
  An Integrated Cloud-Based Wireless Sensor Network for Monitoring Industrial Wastewater Discharged into Water Sources
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Yona</surname><given-names>Zakaria</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>Kisangiri</surname><given-names>Michael</given-names></name><xref ref-type="aff" rid="aff1"><sup>1</sup></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><addr-line>School of Computational and Communication Sciences and Engineering, Nelson Mandela African Institution of Science and
Technology, Arusha, Tanzania</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>zakariay@nm-aist.ac.tz(YZ)</email>;<email>kisangiri.michael@nm-aist.ac.tz(KM)</email>;</corresp></author-notes><pub-date pub-type="epub"><day>10</day><month>08</month><year>2017</year></pub-date><volume>09</volume><issue>08</issue><fpage>290</fpage><lpage>301</lpage><history><date date-type="received"><day>July</day>	<month>14,</month>	<year>2017</year></date><date date-type="rev-recd"><day>Accepted:</day>	<month>August</month>	<year>18,</year>	</date><date date-type="accepted"><day>August</day>	<month>21,</month>	<year>2017</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  This paper presents a prototype of an Integrated Cloud-Based Wireless Sensor Network (WSN) developed to monitor pH, conductivity and dissolved oxygen parameters from wastewater discharged into water sources. To provide realtime online monitoring and Internet of Things (IoT) capability, the system collects and uploads sensor data to ThingSpeak cloud via GPRS internet connectivity with the help of AT commands in combination with HTTP GET method. Moreover, the system sends message alert to the responsible organ through GSM/GPRS network and an SMS gateway service implemented by Telerivet mobile messaging platform. In this prototype, Telerivet messaging platform gives surrounding communities a means of reporting observed or identified water pollution events via SMS notifications.
 
</p></abstract><kwd-group><kwd>Wireless Sensor Network</kwd><kwd> Wastewater</kwd><kwd> GPRS</kwd><kwd> ThingSpeak Cloud</kwd><kwd> Telerivet</kwd><kwd> Internet of Things</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Introduction</title><p>Water pollution by chemicals from municipal and industrial wastewater has become one of the public concerns particularly in developing countries where only 8% undergoes treatment of any kind [<xref ref-type="bibr" rid="scirp.78589-ref1">1</xref>] . Dumping untreated or partially treated wastewater into water sources results in water contamination thereby degrading the quality of water sources.</p><p>The Tanzania’s Environmental Management Act of 2004 and the Environmental Policy for Water Quality Standards of 2007 require all factories to purify their effluent before releasing it to avoid environmental pollution. However, like many developing countries, the release of untreated wastewater remains common practice in Tanzania [<xref ref-type="bibr" rid="scirp.78589-ref1">1</xref>] [<xref ref-type="bibr" rid="scirp.78589-ref2">2</xref>] caused by lack of infrastructure, technical and institutional capacity, and financing [<xref ref-type="bibr" rid="scirp.78589-ref1">1</xref>] , highly efficient wastewater treatment technologies and inadequate water quality monitoring and control systems [<xref ref-type="bibr" rid="scirp.78589-ref3">3</xref>] . For instance, the survey conducted in 2016 by the Tanzania’s National Environmental Management Council (NEMC) in the lake zone found that only 2% of 100 firms in Lake Zone adhere to the environment preservation regulations [<xref ref-type="bibr" rid="scirp.78589-ref4">4</xref>] .</p><p>The extremely low level of wastewater treatment reveals an urgent need for technological upgrades, especially in developing countries, to support the achievement of Sustainable Development Goal (SDG) target 6.3 [<xref ref-type="bibr" rid="scirp.78589-ref1">1</xref>] .</p><p>Monitoring the wastewater discharged into water sources is, therefore, important [<xref ref-type="bibr" rid="scirp.78589-ref2">2</xref>] in order to provide early detection and warning in cases of violation of permissible discharge standards. However, wastewater monitoring in Tanzania is still based on manual practices including field visits, sampling and laboratory tests which are insufficient to satisfy the current monitoring requirements emphasizing on continuous and dynamic water pollution monitoring [<xref ref-type="bibr" rid="scirp.78589-ref5">5</xref>] . Higher degree of effectiveness is required to satisfy these monitoring requirements.</p><p>A wireless sensor network (WSN) is a network comprising of sensing, computing and wireless communication nodes [<xref ref-type="bibr" rid="scirp.78589-ref6">6</xref>] that allow monitoring and gathering data of specified parameters in the environment including water quality. Rapid and extensive application of WSN seen recently in environmental monitoring and industrial monitoring and control applications [<xref ref-type="bibr" rid="scirp.78589-ref7">7</xref>] is fueled by its low cost, distributed intelligence and reduced installation and maintenance expenses [<xref ref-type="bibr" rid="scirp.78589-ref8">8</xref>] . Hence, the emergence of WSN in environmental and monitoring and industrial monitoring provides a promising approach for continuous, dynamic and real-time wastewater monitoring.</p><p>In this paper, an integrated-cloud based WSN prototype is developed to monitor wastewater discharged into water sources. The prototype monitors pH, conductivity and dissolved oxygen parameters of discharged wastewater. The selected parameters are used to provide the generic contamination information, including contamination by toxic compounds in the discharged wastewater. While monitoring the selected parameters, a continuous series of deviant measurement would indicate pollution discharge.</p><p>The experimental results show that the proposed system is capable of real-time online monitoring of the selected parameters in an IoT environment enabled by the ThingSpeak open API. Moreover, the community involvement in reporting pollution discharge events, via SMS notification, in the proposed system provides an added advantage to the proposed system.</p></sec><sec id="s2"><title>2. Related Works</title><p>The application of WSN in environmental monitoring, particularly in water quality monitoring, has been addressed in several research papers. In [<xref ref-type="bibr" rid="scirp.78589-ref9">9</xref>] , the author presented ThingSpeak based sensing and monitoring system for IoT with MATLAB analysis. The IoT capability of this system was enabled by ESP-8266 Wi-Fi module and ThingSpeak cloud. The presented system relies on Wi-Fi network connectivity which may not be feasible in remote places where GSM/GPRS network is the only option. Devassy et al. [<xref ref-type="bibr" rid="scirp.78589-ref10">10</xref>] developed a low cost system for online monitoring and control of industrial effluents in IoT environment. The authors presented a Raspberry Pi based system to monitor and control pH, conductivity and the temperature of the effluents in a tank.</p><p>Another work is exposed in [<xref ref-type="bibr" rid="scirp.78589-ref11">11</xref>] , a smart water quality monitoring system to monitor pH, Oxidation Reduction potential (ORP), conductivity, and temperature using IoT and remote sensing. However, the presented approach is based on the expensive waspmote microcontroller board as compared to Arduino microcontroller boards.</p><p>Locally, the work in [<xref ref-type="bibr" rid="scirp.78589-ref7">7</xref>] proposed a WSN system prototype for water quality monitoring in Lake Victoria Basin (LVB). Data collection, storage, and data visualization were based on Water Resource Governance System (WaGoSy); an innovative and integrated ICT solution designed to address challenges of water resources governance facing the LVB [<xref ref-type="bibr" rid="scirp.78589-ref7">7</xref>] . However, the WaGoSy is still in pilot stage and need evaluation.</p><p>The systems presented so far do not involve the surrounding community in reporting pollution events. Involving people living around water sources in reporting water pollution events via SMS notifications could play a vital role in water pollution monitoring and management since they’re the ones who are affected by the pollution discharges. Animal deaths and people sickness are some of the effects the surrounding community experiences due to water pollution by industrial wastewater discharges.</p></sec><sec id="s3"><title>3. The Proposed System</title><p>The proposed cloud-based wireless sensor network (WSN) for monitoring industrial wastewater discharged into water sources is depicted in <xref ref-type="fig" rid="fig1">Figure 1</xref>. The main parts of the proposed system are WSN sensor node, WSN gateway node, Cloud platform for IoT, and the SMS-gateway.</p><sec id="s3_1"><title>3.1. WSN Sensor Node</title><p>A WSN sensor node is used as a terminal device to collect the water quality data from water sources and transmits the collected data to the WSN gateway node through wireless communication module. The WSN sensor node consists of sensor units, sensor interface shield, Arduino microcontroller, power supply and wireless communication module as shown is <xref ref-type="fig" rid="fig2">Figure 2</xref>. The sensor unit consists of pH, conductivity and dissolved oxygen sensors from Atlas Scientific, as summarized in <xref ref-type="table" rid="table1">Table 1</xref>, interfaced to the Arduino microcontroller unit by a sensor interface shield, the tentacle shield, from Whitebox Labs. Arduino mega 2560 R3, an open source electronics prototyping platform, is used as the microcontroller unit. Wireless communication module on top of the WSN sensor node provides wireless capabilities to the WSN sensor node. It transmits the sensor data wire-</p><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> The proposed cloud-based WSN for monitoring industrial wastewaters discharged into water sources</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x2.png"/></fig><fig id="fig2"  position="float"><label><xref ref-type="fig" rid="fig2">Figure 2</xref></label><caption><title> WSN sensor node hardware architecture</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x3.png"/></fig><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> Summary of sensor specifications</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >SN</th><th align="center" valign="middle" >Sensor</th><th align="center" valign="middle" >Manufacturer</th><th align="center" valign="middle" >Part #</th><th align="center" valign="middle" >Range</th><th align="center" valign="middle" >Temp (˚C)</th></tr></thead><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" >pH</td><td align="center" valign="middle" >Atlas Scientific</td><td align="center" valign="middle" >ENV-40-pH</td><td align="center" valign="middle" >0 - 14</td><td align="center" valign="middle" >1 - 99</td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" >DO</td><td align="center" valign="middle" >Atlas Scientific</td><td align="center" valign="middle" >ENV-40-DO</td><td align="center" valign="middle" >0 - 35+ mg/L</td><td align="center" valign="middle" >1 - 50</td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" >EC</td><td align="center" valign="middle" >Atlas Scientific</td><td align="center" valign="middle" >ENV-40-EC-K1.0</td><td align="center" valign="middle" >5 - 200,000 μS/cm</td><td align="center" valign="middle" >1 - 110</td></tr></tbody></table></table-wrap><p>lessly to the WSN gateway node. All the sensors were calibrated so as to obtain accurate readings of water quality parameters being measured.</p><p>Wireless communication capability of the proposed system is enabled by XBee wireless transceivers. XBee wireless transceivers are opted because of their low cost and power consumption. XBee modules use the IEEE 802.15.4/ZigBee networking protocol for fast point-to-multipoint or peer-to-peer networking [<xref ref-type="bibr" rid="scirp.78589-ref12">12</xref>] . The 802.15.4 Protocol is better suited for slower, long-term applications in which access to external power is problematic therefore battery life is important [<xref ref-type="bibr" rid="scirp.78589-ref13">13</xref>] . The XBee transceiver at the WSN sensor node is configured as an END DEVICE whereas the XBee transceiver at the WSN gateway node is configured as a COORDINATOR. XCTU software was used for the configurations of the XBee modules.</p><p><xref ref-type="fig" rid="fig3">Figure 3</xref> presents the design and hardware implementation of the power supply module used at both the WSN sensor node and the WSN gateway node. The power supply module is equipped with rechargeable batteries, battery holder, and dc-to dc booster. For testing the developed prototype, two 3.7 v, 3200 mAh Li-ion batteries are used.</p></sec><sec id="s3_2"><title>3.2. WSN Gateway Node</title><p><xref ref-type="fig" rid="fig4">Figure 4</xref> illustrates the hardware architecture of the WSN gateway node consisting of microcontroller unit, GPRS module, XBee module, SD card module and power supply. Arduino Uno microcontroller is used as a processor to acquire and process received sensor data from WSN sensor nodes through the XBee module. SIM800C Arduino GSM/GPRS shield from Elecrow was selected to implement the GSM/GPRS module. SD card module is used to provide an extra storage space of the system in case GSM connectivity is not available. The</p><fig-group id="fig3"><label><xref ref-type="fig" rid="fig3">Figure 3</xref></label><caption><title> Design and hardware implementation of the power supply module. (a) The design of the power supply module; (b) Hardware implementation power supply module used in testing the developed prototype.</title></caption><fig id ="fig3_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x4.png"/></fig><fig id ="fig3_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x5.png"/></fig></fig-group><fig id="fig4"  position="float"><label><xref ref-type="fig" rid="fig4">Figure 4</xref></label><caption><title> Hardware architecture of the WSN gateway node</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x6.png"/></fig><p>communication between the SD card and the Arduino Uno is via Serial Peripheral Interface (SPI) data communication protocol.</p><p>Once the WSN gateway node receives the sensor data from the WSN sensor node via the wireless communication module, the WSN gateway node processes the received sensor data as described in the flowchart of <xref ref-type="fig" rid="fig5">Figure 5</xref>.</p><p>To upload data to ThingSpeak cloud through the GPRS internet connectivity, a set of AT commands in combination with the HTTP GET method are used. At First, a TCP connection to the api.thingspeak.com is established by the AT command AT+CIPSTART. Sensor data must be converted into string, hence data can be updated by using command AT+CIPSEND followed by the HTTP GET method with the API Key and the sensor data. After data is sent, connection must be closed by AT+CIPCLOSE.</p></sec><sec id="s3_3"><title>3.3. IoT Cloud Platform</title><p>IoT is interconnection of objects (things), such as sensing and actuating devices, and other smart appliances utilizing the internet as a means of communication [<xref ref-type="bibr" rid="scirp.78589-ref11">11</xref>] [<xref ref-type="bibr" rid="scirp.78589-ref14">14</xref>] [<xref ref-type="bibr" rid="scirp.78589-ref15">15</xref>] . IoT brings intelligence to the interconnected objects [<xref ref-type="bibr" rid="scirp.78589-ref16">16</xref>] with minimal human interventions [<xref ref-type="bibr" rid="scirp.78589-ref14">14</xref>] . For the purpose of connecting sensors to IoT, the focus of paper is on ThingSpeak [<xref ref-type="bibr" rid="scirp.78589-ref17">17</xref>] cloud platform.</p><fig id="fig5"  position="float"><label><xref ref-type="fig" rid="fig5">Figure 5</xref></label><caption><title> Flowchart of data processing at the WSN gateway node</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x7.png"/></fig><p>ThingSpeak is an open IoT platform that provides real time data collection, analysis and actuation with an Open API [<xref ref-type="bibr" rid="scirp.78589-ref17">17</xref>] . In the ThingSpeak cloud, data are stored in channels; a channel can be private or public. Once the channel has been created, sensor data can be uploaded by accessing the ThingSpeak API with a write key. Read key is used to access data in a private channel. <xref ref-type="fig" rid="fig6">Figure 6</xref> depicts the created unique public access ThingSpeak channel with channel ID 269889 and four data fields to collect and store the sensor data.</p><p>There are several reasons for choosing ThingSpeak over other IoT cloud platforms such as Carrio [<xref ref-type="bibr" rid="scirp.78589-ref18">18</xref>] and Xively [<xref ref-type="bibr" rid="scirp.78589-ref19">19</xref>] . Notable advantages of using ThingSpeak as an IoT cloud platform includes, an open source API, simplicity in data exportation, easier data visualizations using live graphs, and the availability of public channel for data storage. Compared to ThingSpeak, Xively provides only trial version for free and notification services are minimally present [<xref ref-type="bibr" rid="scirp.78589-ref20">20</xref>] . Carriot is expensive and less user friendly since it doesn’t offer any ready-made dashboard.</p></sec><sec id="s3_4"><title>3.4. SMS Gateway Service: Community Involvement</title><p>The SMS gateway service of the proposed system provides a tool for reporting pollution being detected by the WSN sensor nodes and the pollution as observed by the community people around the water sources. To implement the SMS gateway service, Telerivet [<xref ref-type="bibr" rid="scirp.78589-ref21">21</xref>] mobile messaging platform is adopted in the proposed system.</p><p>To act as SMS gateway, the platform requires Telerivet’s Android app installed on the internet enabled Android smartphone. The use of SWAHILI as one of the backend language makes Telerivet messaging platform the perfect choice to be used in Tanzania, where the first language is SWAHILI, as compared to other SMS platforms like TERA [<xref ref-type="bibr" rid="scirp.78589-ref22">22</xref>] and Twilio [<xref ref-type="bibr" rid="scirp.78589-ref23">23</xref>] .</p><p>The proposed SMS gateway service handles two types of SMS trigger notifications; Detected water pollution and reported water pollution as illustrated in</p><fig id="fig6"  position="float"><label><xref ref-type="fig" rid="fig6">Figure 6</xref></label><caption><title> The ThingSpeak channel created for data collection and storage</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x8.png"/></fig><p><xref ref-type="fig" rid="fig7">Figure 7</xref> SMS trigger 1 is when the pollution is detected by the sensor nodes and WSN gateway node send SMS notification to the SMS gateway service where by an SMS alert is triggered and sent to the monitoring center as detected pollution. SMS trigger 2 is when the community reports water pollution events on water sources caused by discharged wastewaters.</p><p>To handle appropriate trigger notification, contact groups in Telerivet android app are created so as when an SMS notification is received from respective contact group, Telerivet triggers appropriate pollution alert and send the alert to the monitoring center as well as to the other authorities. Contact group GAT- EWAY contains all the contacts of the GPRS modules SIM cards. On reception of SMS notification from this group, the Telerivet will trigger pollution alert notification “DETECTED POLLUTION ALERT”. This is the pollution detected by the WSN node whenever the discharge is violating the discharge standards. The other contact group, COMMUNITY group has contacts from community people such as environmental officers. Received SMS from this group will trigger “REP- ORTED POLLUTION ALERT” to the monitoring center. <xref ref-type="fig" rid="fig8">Figure 8</xref> indicates the Telerivet conditions set to accomplish this.</p><p>For the community SMS to trigger pollution alert to the monitoring center, the SMS must contain the word pollution and either the following keywords pollution indicator.</p><p>1) Deaths―Keyword indicator of animal, plants, bird’s deaths or deaths aquatic organisms like frogs etc. after consumption of the polluted water.</p><p>2) Sickness―Keyword indicator of people sickness after consuming the polluted water.</p><p>3) Smell―Unpleasant smell from the discharged wastewater.</p><p>4) Color―Colored discharged wastewater.</p><p>Once the SMS gateway service receives SMS containing the word pollution and having either the pollution keywords indicators, the SMS gateway generates SMS alert which is sent to the monitoring center as reported water pollution. Through this SMS gateway service, the community around water sources is involved in monitoring and identifying any potential pollution due to discharge of industrial wastewaters.</p><fig id="fig7"  position="float"><label><xref ref-type="fig" rid="fig7">Figure 7</xref></label><caption><title> The proposed SMS gateway service</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x9.png"/></fig><fig id="fig8"  position="float"><label><xref ref-type="fig" rid="fig8">Figure 8</xref></label><caption><title> Telerivet conditions set to trigger SMS notification alerts</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x10.png"/></fig></sec></sec><sec id="s4"><title>4. Experimental Results and Discussions</title><p>The process of acquiring the measurements from wastewater is done by the WSN sensor node at an interval of 15 minutes. The WSN sensor node reads the monitoring parameters and then passes the readings to the WSN gateway node. The WSN gateway node processes the received sensor data as shown in the flowchart of <xref ref-type="fig" rid="fig5">Figure 5</xref>. <xref ref-type="fig" rid="fig9">Figure 9</xref>(a) and <xref ref-type="fig" rid="fig9">Figure 9</xref>(b) show the hardware implementation of the WSN sensor node and the WSN gateway mode respectively. Functionality and practical application of the developed prototype were verified by testing the system at Nduruma sub-catchment as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>0.</p><p>Visualization of the uploaded sensor data is accomplished using the Thing- Speak live graphs as shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>1. ThingSpeak live graphs plots live sensor data as they are being uploaded to the channel. From <xref ref-type="fig" rid="fig1">Figure 1</xref>1 we can see the variations of the sensor measurements of the monitored parameters with time. Field chart 1 captures the variations of conductivity of the water. For example June 16, 2017, a significant change of EC from 281 &#181;S/cm at 3:08 GMT to 1177 &#181;S/cm at 3:23 GMT was captured. This increase of EC remained around 1200 uS/cm for a period of around 4 hours. Field chart 2 graphs the variations</p><fig-group id="fig9"><label><xref ref-type="fig" rid="fig9">Figure 9</xref></label><caption><title> Hardware implementation of the system: (a) The WSN sensor node; (b) The WSN gateway node.</title></caption><fig id ="fig9_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x12.png"/></fig><fig id ="fig9_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x11.png"/></fig></fig-group><fig-group id="fig10"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>0</label><caption><title> Testing of the developed prototype at Nduruma sub-catchment. (a) Installation of the WSN sensor node at the test site; (b) WSN sensor node taking measurements at the test site.</title></caption><fig id ="fig10_1"><label> (b)</label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x14.png"/></fig><fig id ="fig10_2"><label></label><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x13.png"/></fig></fig-group><fig id="fig11"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref>1</label><caption><title> Sensor data visualization using ThingSpeak interactive line chart</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/4-9501541x15.png"/></fig><p>of pH in water. Taking the record of June 15, 2017, the pH decreased from 7.09 at 20:21 GMT to 4.39 at 20:36 GMT thereafter remained around pH of 4 for about 10 hours. The same can be said about the field chart 3 which graphs the variations of dissolved oxygen in the water. From these variations, a trend of continuous deviant measurements would indicate the water pollution.</p><p>Data visualization helps the people in the monitoring center to monitor and identify potential pollution events caused by the discharged wastewater in real time by observing the trends of variations of the sensor measurements. Form the results shown above the proposed system can achieve continuous, dynamic and real-time online monitoring of the wastewater discharged into water sources.</p></sec><sec id="s5"><title>5. Conclusion</title><p>The presented prototype demonstrates an integrated cloud-based wireless sensor network for monitoring industrial wastewater discharged into water sources. The IoT capability of the presented prototype is enabled by the ThingSpeak API. Thing- Speak open API promises an efficient, flexible and easy IoT platform for implementing the proposed system. The sensor data is visualized in live interactive ThingSpeak plots thereby giving the monitoring personnel the ability to monitor and identify potential pollution events caused by the discharge of wastewater from industries in real time. Moreover, the tabular form of the uploaded sensor data is also available in CSV format which can then be imported into powerful programs like spreadsheet for record keeping and even in report generation of the collected data. The presented prototype also provides an SMS-gateway service through which the people living around water sources can use to report, via SMS, any observed water pollution resulting from the discharge of wastewater. Future work will focus on more community involvement in industrial effluents monitoring systems.</p></sec><sec id="s6"><title>Acknowledgements</title><p>This research work was supported by the University of Dodoma (UDOM) through Higher Education Students’ Loans Board (HESLB) of Tanzania. Authors express their gratitude to the University of Dodoma and Nelson Mandela African Institution of Science and Technology (NM-AIST) management and staffs for their administrative support.</p></sec><sec id="s7"><title>Cite this paper</title><p>Zakaria, Y. and Michael, K. (2017) An Integrated Cloud-Based Wireless Sensor Network for Monitoring Industrial Waste Water Discharged into Water Sources. Wireless Sensor Network, 9, 290- 301. https://doi.org/10.4236/wsn.2017.98016</p></sec></body><back><ref-list><title>References</title><ref id="scirp.78589-ref1"><label>1</label><mixed-citation publication-type="other" xlink:type="simple">UN-Water (2017) The United Nations World Water Development Report 2017, Wastewater the Untapped Resource. United Nations World Water Assessment Programme, Perugia, 1-12.</mixed-citation></ref><ref id="scirp.78589-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Tanzania Bureau of Standards (TBS) (2006) Municipal and Industrial Wastewaters General Tolerance Limits for Municipal and Industrial Wastewaters (TZS860:2006). National Environmental Standards Compendium, Tanzania Bureau of Standards, Dar es Salaam, 1-8.</mixed-citation></ref><ref id="scirp.78589-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Ho, Y.C., Show, K.Y., Guo, X.X. and Norli, I. (2012) Industrial Discharge and Their Effect to the Environment. In: Industrial Waste, InTechOpen, 1-33.  
https://doi.org/10.5772/38830</mixed-citation></ref><ref id="scirp.78589-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Baya, B. (2016) Lake Zone Environmental Survey Report 2016. NEMC Press, Mwanza, 1-9.</mixed-citation></ref><ref id="scirp.78589-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Derbew, Y. and Libsie, M. (2014) A Wireless Sensor Network Framework for Large- Scale Industrial Water Pollution Monitoring. HiLCoE Journal of Computer Science and Technology, 2, 95-101. https://doi.org/10.1109/ISTAFRICA.2014.6880619</mixed-citation></ref><ref id="scirp.78589-ref6"><label>6</label><mixed-citation publication-type="other" xlink:type="simple">Elson, J. and Kay, R. (2003) Wireless Sensor Networks?: A New Regime for Time Synchronization. Computer Communication Review, 33, 149-154.  
&lt;br /&gt;https://doi.org/10.1145/774763.774787</mixed-citation></ref><ref id="scirp.78589-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Faustine, A., Mvuma, A.N., Mongi, H.J., Gabriel, M.C., Tenge, A.J. and Kucel, S.B. (2014) Wireless Sensor Networks for Water Quality Monitoring and Control within Lake Victoria Basin?: Prototype Development. Wireless Sensor Network, 6, 281-290.  
&lt;br /&gt;https://doi.org/10.4236/wsn.2014.612027</mixed-citation></ref><ref id="scirp.78589-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Liu, X. (2012) A Survey on Clustering Routing Protocols in Wireless Sensor Networks. Sensors, 12, 11113-11153. https://doi.org/10.3390/s120811113</mixed-citation></ref><ref id="scirp.78589-ref9"><label>9</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Pasha</surname><given-names> S. </given-names></name>,<etal>et al</etal>. (<year>2016</year>)<article-title>Thingspeak Based Sensing and Monitoring System for IoT with Matlab Analysis</article-title><source> International Journal New Technology and Research</source><volume> 2</volume>,<fpage> 19</fpage>-<lpage>23</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.78589-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Devassy, J. and Srinivasan, K. (2016) Online Monitoring and Control of Industrial Effluents in IoT Environment. International Journal of Innovative Research in Technology, 2, 340-345.</mixed-citation></ref><ref id="scirp.78589-ref11"><label>11</label><mixed-citation publication-type="other" xlink:type="simple">Prasad, A.N., Mamun, K.A., Islam, F.R. and Haqva, H. (2015) Smart Water Quality Monitoring System. 2015 2nd Asia-Pacific World Congress on Computer Science and Engineering, 1-6. https://doi.org/10.1109/APWCCSE.2015.7476234</mixed-citation></ref><ref id="scirp.78589-ref12"><label>12</label><mixed-citation publication-type="other" xlink:type="simple">XBee Buying Guide—SparkFun Electronics.  
https://www.sparkfun.com/pages/xbee_guide</mixed-citation></ref><ref id="scirp.78589-ref13"><label>13</label><mixed-citation publication-type="other" xlink:type="simple">Hangan, A., Vacariu, L. and Cret, O. (2013) A Prototype for the Remote Monitoring of Water Parameters. 2013 19th International Conference on Control Systems and Computer Science, 29-31 May 2013, 1-5.</mixed-citation></ref><ref id="scirp.78589-ref14"><label>14</label><mixed-citation publication-type="other" xlink:type="simple">Perera, C., Liu, C.H. and Jayawardena, S. (2015) The Emerging Internet of Things Marketplace from an Industrial Perspective?: A Survey. IEEE Transactions on Emerging Topics in Computing, 3, 585-598.  
https://doi.org/10.1109/TETC.2015.2390034 </mixed-citation></ref><ref id="scirp.78589-ref15"><label>15</label><mixed-citation publication-type="other" xlink:type="simple">Gubbi, J., Buyya, R., Marusic, S. and Palaniswami, M. (2013) Internet of Things (IoT): A Vision, Architectural Elements , and Future Directions. Future Generation Computer Systems, 29, 1645-1660.</mixed-citation></ref><ref id="scirp.78589-ref16"><label>16</label><mixed-citation publication-type="other" xlink:type="simple">Ma, H. (2011) Internet of Things?: Objectives and Scientific Challenges. Journal of Computer Science and Technology, 26, 919-924.  
https://doi.org/10.1007/s11390-011-1189-5 </mixed-citation></ref><ref id="scirp.78589-ref17"><label>17</label><mixed-citation publication-type="other" xlink:type="simple">ThingSpeak Documentation. https://www.mathworks.com/help/thingspeak/</mixed-citation></ref><ref id="scirp.78589-ref18"><label>18</label><mixed-citation publication-type="other" xlink:type="simple">Carriots—Internet of Things Platform. https://www.carriots.com/</mixed-citation></ref><ref id="scirp.78589-ref19"><label>19</label><mixed-citation publication-type="other" xlink:type="simple">Xively-IoT Platform for Connected Devices. https://www.xively.com/</mixed-citation></ref><ref id="scirp.78589-ref20"><label>20</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Ray</surname><given-names> P.P. </given-names></name>,<etal>et al</etal>. (<year>2017</year>)<article-title>A Survey of IoT Cloud Platforms</article-title><source> Future Computing and Informatics Journal</source><volume> 1</volume>,<fpage> 35</fpage>-<lpage>46</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.78589-ref21"><label>21</label><mixed-citation publication-type="other" xlink:type="simple">Telerivet SMS Platform. https://telerivet.com/about</mixed-citation></ref><ref id="scirp.78589-ref22"><label>22</label><mixed-citation publication-type="other" xlink:type="simple">Trilogy Emergency Relief Application (TERA) IFRC.  
&lt;br /&gt;http://www.ifrc.org/en/what-we-do/beneficiary-communications/tera/</mixed-citation></ref><ref id="scirp.78589-ref23"><label>23</label><mixed-citation publication-type="other" xlink:type="simple">Twilio Global Short Message Service API. https://www.twilio.com/sms</mixed-citation></ref></ref-list></back></article>