Introduction: Remote Monitoring of Weather Using Raspberry Pi

About: I am an Embedded systems and Electronics Projects Designer ,You can see my projects through ,mail me at and subscribe on YouTube for more projects.

In this Project I am going to show you how to make a Remote Weather monitoring system using Raspberry Pi3

I am using PubNub Cloud service for this,Free...which is PubNub is a global Data Stream Network (DSN) and realtime infrastructure-as-a-service (IaaS) company based in San Francisco, California. The company makes products for software and hardware developers to build realtime web, mobile, and Internet of Things(IoT) applications.

PubNub's primary product is a realtime publish/subscribe messaging API built on their global data stream network which is made up of a replicated network of at least 14 data centers located in North America, South America, Europe, and Asia. The network currently serves over 300 million devices and streams more than 750 billion messages per month.

To understand how to use PubNub's cloud service see my YouTube Videos(I have included Link)

Step 1: Things You Need?

1.Raspberry Pi

2.LCD 16x2 (I used HD44780 LCD)

3. Temprature Sensor.(I have Used DS18B20 Temperature sensor probe which follows one wire protocol)

4.LED for indication

5.Bread Board

6.Jumper Wires (M-M,M-F)

7.An Android Phone and a PubNub account

This Project coding is completely done in Python (If you don't know python don't worry I have included the code),You can also learn Python from my website it's very easy
You have to install Os on Raspberry pi before you do this project please check my website on how to do so.

Step 2: Connection Diagram

You Have to connect your raspberry Pi via SSH to your LAPTOP to do coding.after loging in to pi with user name pi and Password:raspberry

to see the Raspberry pi pin diagram visit

do the connection as shown below connect a 4.7k ohm resistor between the VCC and Data wire of DS18B20 other wise we will not get the output.

Create one directory in raspberry pi and extract these files in to that directory

Click here to download the code!

Before that you need to download and install Adafruit LCD library in order for the LCD to work ,also install

to install this run following commands on Raspberry pi terminal

sudo apt-get update
sudo apt-get install -y python3 python3-pip python-dev

sudo pip3 install rpi.gpio


git clone

cd ./Adafruit_Python_CharLCD
sudo python install

Step 3: Working Explanation

The code works with very simple algorithm

When we send "TMP" from PubNub Console it will reads the Room Temperature and sends back to PubNub the reception of TMP is indicated by blinking of LED for 5 seconds and Displaying in LCD

See the Video to understand more.