Skip to content

shubhadeepmandal394/remote-temperature-monitoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Remote Temperature Monitoring

Sending an alert on Telegram when Temperature Crosses Threshold

In this project the code fetches the temperature data collected by Bolt IoT wifi module and send alert messege over telegram if the temperature value crosses a certain threshold.

Hardware Required

1. The Bolt Wifi module
2. Three female to male wire
3. Temperature Sensor: LM35 sensor

Hardware Connection

Connecting the LM35 sensor to the Bolt
Hold the sensor in a manner such that you can read LM35 written on it.
In this position, identify the pins of the sensor as VCC, Output and Gnd from your left to right.
Now connect accordingly,
1. VCC pin of the LM35 connects to 5v of the Bolt Wifi module.
2. Output pin of the LM35 connects to A0 (Analog input pin) of the Bolt Wifi module.
3. Gnd pin of the LM35 connects to the Gnd.

The final circuit should look like the image below:

Creating a Virtual Private Server (VPS)

You can create a virtual private server in Two ways,

  1. By creating a Digital Ocean Droplet.
  2. By creating a Ubuntu Server using a Virtual Machine on your local Desktop/Laptop.

You can also use your Raspberry Pi as your VPS and access it using puTTY (for Windows Users).

Setup your Telegram

To setup your Telegram click here

Sending and Receiving Alerts

Before running the code make sure you have installed python and the nescessary libraries for running the code in your VPS Update the packages on Ubuntu Server using the following command,

sudo apt-get -y update

Install python3 pip3 using the following command,

sudo apt install python3-pip

Install boltiot python library using the following command,

sudo pip3 install boltiot

Now, type in the code and run the code in your server (don't forget to modify conf.py according to your own Hardware and Software Configurations).

Run the code using the following command,

python telegram_alert.py

Sending Alert

Receiving Alert

About

Sending an alert on Telegram when temperature crosses threshold

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages