Air conditioners (ACs) are among the largest consumers of electricity in buildings, so automatic control is needed to improve energy efficiency while keeping room temperature stable. Conventional ON-OFF control, however, causes relay chattering when the temperature fluctuates around the setpoint, which accelerates the wear of relay contacts and the compressor. This study develops an Arduino Uno-based automatic AC temperature control system that uses the ON-OFF method with a hysteresis band of ±1 °C to reduce the switching frequency of the relay. A research and development (R&D) approach was followed through requirements analysis, hardware and software design, implementation, and testing. The system comprises an Arduino Uno, a DHT22 temperature sensor, a relay module, a 16×2 I2C LCD, a buzzer, and setpoint push buttons. Calibration against a digital thermometer yielded a mean absolute error of 0.24 °C and a root mean square error of 0.26 °C. In a cooling test from 30 °C to a setpoint of 24 °C, the room temperature entered the hysteresis band after about 15 min and settled near the setpoint within about 25 min, after which it remained inside the ±1 °C band. Compared with conventional ON-OFF control, hysteresis reduced relay switching from 21 to 11 times per hour, a reduction of 47.6%, which improves control stability and is expected to extend the service life of the relay and compressor. The system is simple and low-cost and can be applied to microcontroller-based building automation.
Copyrights © 2026