In today's world, our lives on a daily basis revolve around electronic devices be it for work or other leisure purposes. However, prolonged use of theses devices may lead to overheating and in most cases damage and loss of valuable data. Overheating causes more harm than one can think of as it may:
- Make your device slower
- Cause a burn in one or more ICs
- Cause sudden shutdowns
- In extreme cases, lead to fires
To counter this problem, we need a cheap, simple to use and power efficient device which can continuously monitor the temperature of any device.
Using an LM35 sensor and Bolt Wi-fi module we can easily monitor the temperature and if the temperature crosses the specified threshold, we can send real-time alerts to the user via the Telegram app and the buzzer.
The usage of this device is easily comprehensible. All you need to have is a telegram account and you are good to go! Just plug in the Bolt module to the USB socket of the device you are using. The device will automatically detect temperature over regular intervals of time and alert you if your device is overheating.
For the construction of this device we will require
- USB Cable
- Bolt WiFi Module
- LM35 sensor
- Connecting Wires
The image below shows the hardware connections:
For the first part of the code we will require to create a code with the API key and all the required Credentials of Telegram, we will also set the temperature threshold. We will import this file in our main code in the second part. We name this file "conf.py"
Now, we move on to the main file which contains the code for detecting the sensor value and sending Telegram messages. We use the pre-built Bolt library for python to get the pin and sensor values. We name this file "telegram_alert.py"