Integration of a Microcontroller-Based Temperature Sensor with SSH Scripting for Automated Server Power-Off Under Critical Conditions
Keywords:
Internet of Things, ESP32, DHT22, MQTT, ThingsBoardAbstract
The advancement of Internet of Things (IoT) technology has enabled the development of monitoring systems that enhance the security and reliability of server infrastructure through real-time environmental data collection. This study aims to implement a server room temperature-monitoring system based on the ESP32 microcontroller integrated with a DHT22 temperature sensor, the Message Queuing Telemetry Transport (MQTT) protocol, the ThingsBoard platform, a Telegram Bot, and an automated server power-off mechanism via Secure Shell (SSH). The proposed system periodically measures temperature, transmits sensor data to a cloud platform via MQTT, displays real-time information on the ThingsBoard dashboard, and sends notifications to the administrator through Telegram when the temperature reaches a critical threshold. Under critical conditions, the system automatically executes a server power-off command through a Flask API and OpenSSH as a protective mechanism against hardware damage caused by excessive heat. Functional testing was conducted on all system components, including the DHT22 sensor, MQTT communication, the ThingsBoard dashboard, a 16×2 I2C LCD, LED indicator, buzzer, Telegram Bot, and the integration between Flask API and OpenSSH. The experimental results demonstrate that all components operated successfully and were fully integrated. Temperature data were transmitted and displayed on the dashboard in real time; Telegram notifications were delivered based on predefined conditions; and the automated server power-off simulation was successfully executed when the temperature exceeded the critical threshold. These findings indicate that integrating IoT technology with SSH automation enhances monitoring effectiveness and provides an automated protection mechanism for server rooms.
Downloads
Downloads
Published
Issue
Section
License
Copyright (c) 2026 International Journal of Simulation, Optimization & Modelling

This work is licensed under a Creative Commons Attribution 4.0 International License.