Skip to content

A temperature sensore using DHT11 and SIM800L that replies back to you with SMS

License

Notifications You must be signed in to change notification settings

stiliajohny/hardware-sms-temperature-sensor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues GPL3 License LinkedIn Ask Me Anything


Main Logo

hardware-sms-temperature-sensor

A temperature sensore using DHT11 and SIM800L that replies back to you with SMS.
Explore the docs »

Report Bug · Request Feature

Table of Contents

About The Project

Product Name Screen Shot

This project is a POC while researching for a bigger project that will be a GPS tracker. The idea is to have a device that will be able to send SMS messages with the current temperature and humidity of the place where it is installed. It can be connected to a solar panel and a battery to be able to work off the grid.

We are using a simple GSM module (SIM800L) and a temperature sensor (DHT11) to get the temperature and humidity of the place where the device is installed.

The simplicity of the SIM800L is that is using RX/TX serial communication and it is small in size that can be easily integrated in a small device.

The DHT11 is a simple temperature sensor that is using a single wire to communicate with the microcontroller. Worth mentioning that the readings are not very accurate. It can be updated with a DHT22 sensor that is more accurate.

Built With


Getting Started

Prerequisites

  • Hardware
    • ESP8266
    • SIM800L
    • DHT11
    • USB ( for the ESP8266 )
    • Jumper wires
    • Breadboard (optional but recommended)
  • Software
    • Arduino IDE
    • Arduino ESP8266 Core
    • DHT Sensor Library

Installation

Clone the repo

git clone git@github.com:stiliajohny/hardware-sms-temperature-sensor.git

Then open the project in the Arduino IDE make some edits as follows:

  • In the SIM800L_DHT.ino file change the phone number to your phone number:

The number needs to follow the international format. For example: +447123456789

const String PHONE = "+447572785067";
  • In the SIM800L_DHT.ino file change the serial baud rate to the one that you are using:

The SIM800L module is using 9600 baud rate by default. If you are using a different baud rate you need to change it in the code.

The default baud rate for the ESP8266 is 115200

int SerialBaudRate = 115200;
int sms800BaudRate = 9600;

Usage

After uploading the code to the ESP8266 you can connect to the serial port and see the output of the device. Now you need to observe the reception LED on the SIM800L module.

Reception LED SMS SMS
The module is running but the connection to the cellular network has not yet been made. The GPRS data connection you requested is active. The module has made contact with the cellular network and can send/receive voice and SMS.

After the device is connected to the cellular network you can send an SMS to the device with the following message:

get temperature

The device will reply back with the current temperature and humidity.

Roadmap

See the open issues for a list of proposed features (and known issues).


Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the GPLv3 License. See LICENSE for more information.

Contact

John Stilia - stilia.johny@gmail.com


Acknowledgements