M.Nivetha1, V.Nanthini2

Dr.S.Selva Nidhyanandhan3

1,2-UG Scholars , 3- Associate Professor

Department of Electronics and Communication Engineering,

Mepco Schlenk Engineering College, Sivakasi, TamilNadu 626005, India

Abstract- IOT or Internet of Things is a technology which is used to collect, store and analyze device data through internet. The major aim of our proposal is to introduce IOT concept in campus for power conservation as well as making the campus eco-friendly. At the same time it ensures the performance & analysis of sensors is automated, by means of IOT.

The system is mainly concerned with two modules i.e, automatic switching of lights in corridors and classrooms. During night time, lights can be switched on/off automatically in corridors by using PIR sensor on human crossing. In classrooms/laboratories lighting can be provided by detecting human presence in that place using thermal sensors. This can provide a complete lighting solution in campus with minimized power consumption and reducing wastage of power.

Lights can be controlled without any human intervention hence the system will be error free and more efficient.

Keywords—Light, Automation, Intensity, Solar utilization.


Lighting of buildings consume energy upto 40% of total energy consumption. Over the past few decades, the amount of energy usage increases and the need of those resources also increases. More enhanced applications are needed in urban areas. Here our main aim is to reduce electricity wastage in campus will ultimately reduce electricity bills and manpower in the campus. In the digital era, human life is getting more and more simpler by reducing the manual systems.

Get quality help now

Proficient in: Environmental Science

4.7 (657)

“ Really polite, and a great writer! Task done as described and better, responded to all my questions promptly too! ”

+84 relevant experts are online
Hire writer

According to previous research and industrial work says that simple lighting system with the help of sensors like PyroelectricInfraRed (PIR), Temperature sensor which effectively reduce the amount of energy needed for buildings, schools, colleges and public places. We are using LED lights and simple sensors which makes the system cost effective and reliable.

Light Emitting Diode (LED) is a kind of semiconductor device that emits light. We may think that Led emits bright light but most LEDs are monochromatic in nature. Another advantages of led is Longer Life Time and solid state device which is not easily affected by external shock.

Mostly we focused on comfort of students and electricity savings in labs/classrooms. Here Automation of light can be used to reduce power consumption and manpower. This kind of optimized solutions improve modern technologies in secured manner and make the campus as e-connected campus to enhance the quality of life and drive improvements in other areas like management, safety and eco-friendly.


The campus lighting automation mechanism depends on various parameters like type of light source , human presence and so on. To make this system reliable and energy efficient , microcontrollers initiates all controlling actions based on sensor outputs. The system consists of low power sensors, microcontrollers ,energy efficient LED based light source, web server. Battery powered independent adaptive controlling system will helpful to work in all conditions.

In this system, the ambient light is considered to sense the darkness in the area. The sunset and sunrise timings are tracked with Real Time Clock. The entire system is controlled with an efficient microcontroller. With real-time data, the precise controlling actions are applied on campus lights. This tends to save the energy.

A Algorithm

The flow of system functionality is shown in fig.1 below. The RTC is configured first time with current time details once the time has matched, it can interrupt the microcontroller to Turn ON-OFF lights.

RTC continuously keep tracking during entire operation. This system is independent of each other (between lights), hence no need to keep track of any sensor network.

Fig.1.Flow chart of the execution in system

B Selection of Components

Selection of component plays a vital role in smart campus system. Here we are using two components PIR sensor and Thermal sensor as sensing elements. ESP8266 NodeMCU as processor and Wifi receiver. DS3231 for Real Time Clock.

PIR sensor in fig.2 is an electronic sensor which detects a human presence within the range of about 10m from the sensor . It have a wide lens range and of flat control .It have a 3-pin connection .One will be ground , other for digital TTL output and the last will be for 5V power supply. The output of PIR sensor will be digital which may be either high or low. When a human crosses the sensor detects the human presence with help of rise in temperature from normal room temperature and then back again. Now the sensor converts them into a output voltage and it triggers the detection. In this system, PIR sensor is used to sense the human movement in the corridors during night time. The sensor output is TTL with either 3.3v or 0v. The sensor gives HIGH on human movement within the range whereas gives LOW on no movement.

Fig.2.PIR Sensor

D6T-8L-09 MEMS thermal sensor in fig.3 are developed for non-contact temperature measurement and human detection. It measure the surface temperature of the materials by detecting the intensity of the infrared radiation. It have high noise immunity and low cross talk field of view. D6T thermal sensor is ideal for human detection and provides the temperature values instantly of an entire area .In our system, it also doing the same and power is conserved when devices power down when no human is detected.

Fig.3. D6T-8L-09 Thermal sensor

LED lights is an actuating device in the system. It have longer life time than normal sodium lamps. It turns on/off automatically without any warm-up signal and is more directional .

The processor used for this system is ESP8266 NodeMCU in fig.4. It is serial wireless module with built in micro-USB, reset switches and easy to program. It also have arduino compatible and many number of GPIO pins . In our system on receiving data from the sensor and with the help of built in ESP8266 Wi-Fi module send the data to webserver and display them on the server. Now, on the actuating section, another ESP8266 NODEMCU is used to receive date from webserver and actuate the corresponding relay and actuate the light correspondingly.

Fig.4. ESP8266 NodeMCU

In ESP8266 NodeMCU , we doesn’t have any default RTC . For finding whether it is day or night in real time we are in need of using external device as Real Time Clock(RTC). In this project we are using DS3231 RTC in fig.5. RTC is a computer clock that always keeps track of our current time. It is powered using coin cell battery.

Fig.5. DS3231 RTC

C System at work

The system is distributed into four sections. In the first section, PIR sensor and thermal sensor which provide real time parameters. In the second section the advanced microcontroller is connected with battery operated platform along with Real Time Clock which is providing the current day time with accurate details. Using this clock, the microcontroller computes the time factor to generate the precise controlling actions to adapt the light conditions with sunset and sunrise time. The power supply to the controller can be sourced from DC adapter or Battery Operated System.

In the third section, the data is viewed through web server from any remote places and control signals sent to light sources.

In the fourth section, the light is triggered using relays based on controlling action either ON/Off.


The sensors are placed at appropriate intervals based on requirement at corridors and classrooms. When any human movement detected in corridor the sensor produce HIGH output which can be viewed in Webserver. The corresponding output is sent to webserver through Wi-Fi module ESP8266 and the light can be illuminated by sending signal to relay which is also connected with ESP8266 NodeMCU Wifi receiver.

The time delay for illuminating the light is less than 1s and so that the system is reliable for real time scenario. Fig.6 below shows the results obtained on real time case for PIR sensor.When there is any motion detected in the range of PIR sensor, then the relay is actuated automatically using Wifi and the changes are viewed in webserver.

Fig.6. Working of PIR sensor and webserver updation

Fig.7 below shows the manual controlling of relay for controlling lights in case of any manual control needed.

Fig.7. Manual controlling of relay using Webserver remotely

Fig.8 below shows the preview of webserver for PIR sensor.

Fig.8. Webserver preview


A Conclusion

The automatic lighting system reduces power wastage by reducing unwanted lighting and reduces human errors. Existing systems for lighting based on IOT provide only controlling of lights by human by sending reports about sensor data which may have some man made errors. But our system is having both human controllable and automated lighting by communicating between sensor NodeMCU and receiver NodeMCU, thus provides complete lighting system.

B Future Scope

Once this intelligent system is implemented , next the sensors can be employed wirelessly based on Wireless Sensor Network(WSN). We hope that these advancements can make this system completely robust and totally reliable in all aspects.


[1] Gonzalo Ruiz Garc?a, J.M. Flores Arias, F.J. Bellido Outeiri?o, A Moreno -Mu?oz, E. J. Palacios-Garc?a Miguel A. Quero-Corrales University Of Cordoba, Cordoba, Andalusia, Spain, ”Home Lighting Controller Based on BLE” 2017 IEEE International Conference on Consumer Electronics (ICCE).

[2] MicheleMagno,TommasoPolonelli, LucaBeniniand,EmanuelPopoviciSenior,”ALowCost,HighlyScalableWirelessSensorNetworkSolutiontoAchieveSmartLEDLightControlforGreenBuildings”IEEESENSORSJOURNAL,VOL.15,NO.5,MAY2015.

[3] Manoj,Kavedia,SudhaGupta“SMARTSOLUTIONFORTUNNELLIGHTENINGSYSTEM”,InternationalJournalofAdvancesinScienceEngineeringandTechnologyISSN:23219009Volume-2,Issue-4,Oct.-2014

[4] S.R.Lim,D.Kang,O.A.Ogunseitan,andJ.M.Schoenung,“Potentialenvironmentaimpactsoflightemittingdiodes(LEDs):Metallicresources,toxicity,andhazardouswasteclassification,”Environ.Sci.Technology,vol.45,no.1,pp.320–327,Jan.2011.

[5] B.VonNeida,D.Maniccia,andA.Tweed,“Ananalysisoftheenergyandcostsavingspotentialofoccupancysensorsforcommerciallightingsystems,”J.IlluminatingEng.Soc.,vol.3,no.2,pp.111–125,2001.

[6] H.N.Lokhande,S.D.Markande,“AdaptiveStreetLightControllingForSmartCities”,InternationalJournalOfAppliedEngineeringResearchISSN0973-4562vol13,no10(2018)pp.7719-7723.

[7] D6TThermalSensorenablesdetection ofastationaryhumanpresence,[Online].Available:

[8] Castro,M.;Jara,A.;Skarmeta,A.SmartLightingSolutionsforSmartCities.InProceedingsofthe201327thInternationalConferenceonAdvancedInformationNetworkingandApplicationsWorkshops(WAINA),Barcelona,Spain,25–28March2013;pp.1374–1379.

[9] B.Roisin,M.Bodart,A.Deneyer,andP.D’Herdt,“Lightingenergysavingsinofficesusingdifferentcontrolsystemsandtheirrealconsumption,”EnergyBuildings,vol.40,pp.514–523,2008.

[10] Pranay Kujur and Kiran Gautam, “Smart Interaction of Object on Internet of Things”, International Journal of Computer Sciences and Engineering, Volume-03, Issue-02, Page No (15-19), Feb -2015..

[11] Aloisi, “Enabling communication between Wireless Sensor Networks and the Internet-of-Things –A CoAP communication stack,” pp. 4-27, 2014.

[12] Karen Rose, Scott Eldridge and Lyman Chapin , “The Internet of Things (IoT): An Overview,” 15 october 2015. [Online]. Available: [Accessed 24 February 2017].

[13] Xing Liu, OrlandoBaiocchi ,”A Comparison of the Definitions for Smart Sensors, Smart Objects and Things in IoT”,IEEE 7th Annual Information Technology, Electronics and MobileCommunication Conference (IEMCON),October 2016 .

[14] Sensors: Different Types of Sensors,” [Online]. Available

[15] R. Components, “11 Internet of Things (IoT) Protocols You Need to Know About,” 20 April 2015. [Online]. Available:

Cite this page


Let’s chat?  We're online 24/7