This document describes a smart classroom monitoring system using machine learning and IoT. The system uses sensors like an LDR light sensor and temperature sensor connected to an Arduino microcontroller board to automatically control lights and fans based on light levels and temperature. A Raspberry Pi is used to run software that takes student attendance using facial recognition of images captured by a classroom camera. The software is divided into modules for building a student database from photos, training a face recognition model, and testing unknown faces during class. Real-time student attendance and any questions can be displayed on an LCD screen or sent to a teacher's mobile device using a Telegram server. The system aims to reduce tasks for teachers and enhance the classroom learning environment.