The Internet of Things is an emerging topic of technical, social, and economic significance. With so many applications of internet of things, I decided to create a project on IoT. I have created a temperature monitoring system which detects any temperature change in the system and also when the temperature goes out of the given range. This detected anomaly is notified to the user by an SMS or an email. This project can be used for monitoring and industry process where in a specific temperature is to be maintained. If any change is detected, the immediate information provided to the user helps in faster recognition and resolution of the problem.
VideoStep 1: Hardware SetupConnect the leftmost pin(Vcc) of LM35 from the flat side to the 5V pin of the Bolt WiFi module with a male to female jumper wire, the middle pin(Output pin) to the A0 pin and the rightmost pin(ground pin) to the ground pin(GND).
Power on the Bolt WiFi module using any power source.
Create a new digital ocean account from https://try.digitalocean.com/performance/?utm=Internshala
Add the required billing information
Choose image: Click on Create button and choose Droplet from the drop-down menu and the 'Create droplet' screen will appear. Ubuntu 64 image is selected as default and keep the same for the project.
Choose the size of the droplet i.e. the amount of RAM and storage space it should have. I suggest you to choose the minimum size plan as it will be enough for the project with the amount credited in your account.
Choose a data centre region nearest to you.
Once you have selected your options, click Create. A progress bar displays how close your Droplet is to being ready.
After successful creation of droplet, you will receive an email from DigitalOcean with your droplet(Ubuntu server) login credentials.
Use terminal for mac and putty for windows and login to the digital ocean server.
Change your password(which won’t be visible).
We will be using python, hence install python3 through the terminal.
Then install the boltiot python library.
Login to cloud.boltiot.comand note the ID of your Bolt WiFi Module.
Now click on the API Tab and under the section for Generate Key and click on Enable.
Next click on the copy button to copy your API.
Step 4: Create and Use a Twilio AccountTwilio is a third-party SMS provider.
Open https://www.twilio.com/ in browser. Click on Get a Free API Key button to sign up. Fill the necessary details and then create a project.
Then copy and save the Account SID and Auth token somewhere from the Project info.
Choose programmable SMS and Get Started. Then save the twilio number you get.
Mailgun is an email automation service.
Open https://www.mailgun.com/ in browser.
Sign up and fill the necessary details.
Verify your phone number and email ID
Then Sandbox domain-> add recipients -> invite new recipient -> enter email ID
Then click on the sandbox ID generated and save the sandbox URL and private API key somewhere safely.
Step 6 : Write a python code in Ubuntu( terminal for mac users and putty configuration for windows users) to monitor the temperature and use Boltiot, twilio and Mailgun to give information to the user.












Comments