How to make a automated Classroom that would keep a track of students and other electrical equipment such as (light , fan , ac)?

I want to make a automated class room where there will be a track for students coming and going out of the class room and all other electrical equipment can be auto controlled .

For tracking students use proximity sensors.

For control of Fan, Light you can use relays. The experiment is covered in the workshop