Electricity-saving can be achieved through the efficient use of energy, such as turning off lights and electrical appliances when not in use. Therefore, this work proposed the smart classroom for electricity-saving with an integrated IoT System to prevent wasting electricity in the classroom. Smart Classroom means that it will detect and count the number of students entering and exiting the classroom by using a sensor system automatically. The main objective of this work is to control the lighting systems and fans by using the IoT application and sensor system. This means that when the sensor is triggered, the sensor will send data to the Blynk application software using IoT to display the status of the classroom. This proposed work is also able to detect whether a classroom is available to use or not based on the presence of people. If the classroom is being used, the Blynk application software will show the lamp and fan are ON. Otherwise, the lamps and fans are OFF if there are no people in the classroom. The result successfully shows that if the first student entering the classroom, all the lamps and fans are ON. While, if the last student exiting the classroom, all the lamps and fans are OFF. This result also indicates that electricity can be saved if all appliances in the classroom are switch OFF at the right time.