No
Yes
Yes
No
START
Classroom
Schedule
(Schedule Based
input)
Provided by server
Locks will be activated
(Doors unlocked)
Sensors will
be activated
Is the sensor
blocked?
Circuit starts
counting
IN
(Sensors will
count the
number of
students
entering)
OUT
(Sensors will
count the
number of
students
exiting)
Is IN = OUT ?
Doors Locked
Lights, Fans, Computers,
Projectors and air
conditions turned on
Lights, Fans,
Computers,
Projectors and air
conditions shut
down
END