10 $ Portable Arduino Weather Station (AWS)




About: So basically i am a crazy person, who loves to think the most odd way ever possible,who makes what he thinks and also let other also make those . Check out my crazy projects if you like do follow me :D

Recently my college had a small science exhibition .
So i was requested by my teacher to present a project in the college to teach young students about electronics so basically i had two days to make some thing.

As the climatic conditions over here are varies a lot and recently the temperature is somewhere around 34-40 degree Celsius. So i decided to make a weather station.

Thanks for your support it won the sensor competition .

So what does a weather station do ?

A weather station is a device that collects data related to the weather and environment using many different sensors

Sensors like

  1. Wind
  2. Humidity
  3. Rain
  4. Temperature
  5. Pressure
  6. Altitude

The aim is to make a portable weather station

Features it should have

  • Temperature
  • Humidity
  • Pressure
  • Altitude

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Ingredients: Time to Buy Stuff

DHT22So here is the thing we will need for the project

I actually started the project on My UNO but then i decide to switch to compact solution.

I had the nano with me at that moment so had to go with it , would love to use micro,because it is the smallest.

Anyways leaving those things,talking about budget and parts here is the list .

  1. DHT22 Temperature and humidity sensor ->3.00$
  2. BMP180 pressure sensor (BMP280 is more cheaper but expensive in my locality ) >2.00$
  3. Arduino Nano >1.89%
  4. Soldering
  5. LCD Display with I2C Driver >3.0$
  6. Veroboard
  7. Female header

For tool end you will need

  1. Soldering Iron
  2. Nose Plier
  3. Wires

And Also some time

Indians can buy stuffs from http://www.dnatechindia.com/

links below



Step 2: Temperature and Humidity- DHT22

Measuring the temperature can be made using different sensor.

The popular ones are DHT22,DHT11,SHT1x

So basically, lets understand how this sensor are different from each other and why i have used DHT22 in the first place.

AM2302 output calibrated digital signal. It applys exclusive digital-signal-collecting-technique and humidity sensing technology, assuring its reliability and stability. Its sensing elements is connected with 8-bit single-chip computer.

Every sensor of this model is temperature compensated and calibrated in accurate calibration chamber and the calibration-coefficient is saved in type of programme in OTP memory, when the sensor is detecting, it will cite coefficientfrommemory. Smallsize&lowconsumption&longtransmissiondistance(100m)enableAM2302tobesuitedinallkindsof harshapplicationoccasions.Single-rowpackagedwithfourpins,makingtheconnectionveryconvenient.

Lets see some pros and cons of the three.


Pros:No soldering needed. Cheapest among three. Get stable output quickly. Transmission over 20m. Strong interference.

Cons:Library! No resolution option. Errors: Temp+/-2°C; Humid+/-5%RH. Inadequate measuring range(0-50°C). Applications:Gardening, Agriculture.


Pros:No soldering needed. Adding a few bucks to DHT11 and get an upgrade. Smooth curve. Smallest error. Large range. Transmission over 20m. Strong interference.

Cons:Can be more sensitive. Slow temperature tracking. Library needed. Applications:Environmental Monitoring. SHT1x

Pros:No soldering. Smooth curve. Small error. Quick response. Low power consumption. Auto sleep. Extraordinary long term stability and consistency.

Cons:Two digital interfaces. Humidity error. Same measuring range with DHT11. Library needed. Applications:Heavy duties and longtime installations. Following are three relatively cheap choices.


Vcc to 5V or 3.3V

Gnd to Gnd

Data to pin 2 of arduino

Step 3: Barometer and Pressure Sensor- BMP180

The bmp180 a barometric pressure sensor with an I2C (“Wire”) interface.

Barometric pressure sensors measure the absolute pressure of the air around them. This pressure varies with both the weather and altitude.

this bmp180 module came with a 3.3 v regulator 662k which i blew up to some stupidity so i attached a wire to by pass the whole vcc directly to the chip.

Note : On Doing so i restrict myself from using only 3.3 v ,using voltages above it will ruin the device.

Other model may not have the 662k voltage regulator. so check thoroughly .

Ok coming back lets connect the sensor to the arduino .

The sensor connects to the i2c bus of the arduino which of nano and Uno are





Lets talk about pressure a little and how does pressure measure altitude and temperature.

The atmospheric pressure at any position is not constant.The complex interaction between the earth’s spin, axis tilt, and many other factors result in moving areas of higher and lower pressure, which in turn cause the variations in weather we see every day. By watching for changes in pressure, you can predict short-term changes in the weather.

For example, dropping pressure usually means wet weather or a storm is approaching (a low-pressure system is moving in). Rising pressure usually means that clear weather is approaching (a high-pressure system is moving through).

Atmospheric pressure also varies with altitude. The absolute pressure in Mt .everest base camp (5,400 )is lower than Delhi(216)

Since Abosolute pressure is difficult to directly compare pressure measurements from one location to another.we use the relative pressure .that is sea level pressure.

Measuring altitude

The average pressure of the atmosphere at sea level is 1013.25 hPa (or mbar). This drops off to zero as you climb towards the vacuum of space. Because the curve of this drop-off is well understood, you can compute the altitude difference between two pressure measurements (p and p0) by using this equation:


If you use sea level pressure (1013.25 hPa) as the baseline pressure (p0), the output of the equation will be your current altitude above sea level.


Give it air: Remember that the BMP180 needs access to ambient air to measure its pressure, so don’t put it in a sealed case. Providing a small vent hole should be adequate.
But not too much air: On the other hand, exposure to fast-moving air or wind can cause momentary pressure variations that will affect your readings. Shield the device from strong air currents.

Keep it cool: Because an accurate temperature reading is needed to measure the pressure, try not to expose the device to rapid temperature changes, and keep it away from nearby hot parts and other heat sources.

Keep it dry: The BMP180 is sensitive to moisture. Don’t submerge it or allow it to contact liquid water.

Don’t blind it: Surprisingly, the silicon within the BMP180 is sensitive to light, which can enter the device through the hole on the top of the chip. For maximum accuracy, shield the chip from ambient light.

Step 4: Making the Circuit

So we start by making the header for the nano. we actually cut the female headers and then file them to make them look as if they were originally that size.we then solder it. then we made the headers for DHT22 sensor

. it needed a 10k resistance to be connected from the data to ground. we then soldered everything.
Then it was time for the bmp180 we added the header in a similar manner.We used 3.3 V as the power .We connected all the i2c bus.

We added lastly the display we are using i2c lcd so w used the same bus we used for the bmp180 module.

(There is a fourth slot in which i wanted to add rtc module later to also incoperate clock in the machine )

Step 5: Time for Code

Wait ....................

Download the libraries



Dht22 library


To install a library in arduino check this link


I have used arduino 1.6.5 so the code will work for this version for sure , also may be for higher if any case it does n't work do use 1.6.5 as the base version.

<p>#include <wire.h><br>#include <lcd.h>
#include "DHT.h"
#include <sfe_bmp180.h></sfe_bmp180.h></liquidcrystal_i2c.h></lcd.h></wire.h></p><p>SFE_BMP180 pressure;</p><p>#define ALTITUDE 20.56
#define I2C_ADDR 0x27 // <<- Add your address here.
#define Rs_pin 0
#define Rw_pin 1
#define En_pin 2
#define D4_pin 4
#define D5_pin 5
#define D6_pin 6
#define D7_pin 7</p><p>#define DHTPIN 2     // what digital pin we're connected to</p><p>// Uncomment whatever type you're using!
//#define DHTTYPE DHT11   // DHT 11
#define DHTTYPE DHT22   // DHT 22  (AM2302), AM2321
LiquidCrystal_I2C lcd(I2C_ADDR,En_pin,Rw_pin,Rs_pin,D4_pin,D5_pin,D6_pin,D7_pin);
float t1,t2; </p><p>  
void setup()
 lcd.begin (16,2); // <<-- our LCD is a 20x4, change for your LCD if needed
// LCD Backlight ON
lcd.home (); // go home on LCD
lcd.print("Weather Station");
void loop()
 char status;
  double T,P,p0,a;
   status = pressure.startTemperature();
  if (status != 0)
    delay(status);</p><p>    status = pressure.getTemperature(T);
    if (status != 0)
      lcd.print("Baro Temperature: ");
      lcd.print(" deg C ");
      delay(3000);</p><p>      status = pressure.startPressure(3);
      if (status != 0)
        // Wait for the measurement to complete:
        delay(status);</p><p>        status = pressure.getPressure(P,T);
        if (status != 0)
          lcd.print("abslt pressure: ");
          lcd.print(" mb ");
          delay(3000);</p><p>          p0 = pressure.sealevel(P,ALTITUDE); // we're at 1655 meters (Boulder, CO)</p><p>          a = pressure.altitude(P,p0);
          lcd.print("Altitude: ");
          lcd.print(" meters");
float h = dht.readHumidity();
  // Read temperature as Celsius (the default)
  float t = dht.readTemperature();
 lcd.setCursor (0,0); // go to start of 2nd line
 lcd.print("Humidity: ");
  lcd.print(" %");
 lcd.setCursor (0,0); // go to start of 2nd line
  lcd.print("DHT Tempurature: ");
  lcd.print(" deg C  ");
 lcd.setCursor (0,0); // go to start of 2nd line
  lcd.print("Mean Tempurature: ");
  lcd.print(" deg C  ");
Sensors Contest 2016

Second Prize in the
Sensors Contest 2016

Urban Farming Contest

Runner Up in the
Urban Farming Contest

Home Hacks Challenge

Participated in the
Home Hacks Challenge

2 People Made This Project!


  • CNC Contest

    CNC Contest
  • Make it Move

    Make it Move
  • Teacher Contest

    Teacher Contest

44 Discussions


3 years ago

Hey plaese tell me which type of LCD is required for this project.


3 years ago

Hey! Can you tell me which type of wires do I need for this project? And do I need a veroboard or a breadboard is enough. And why did you cut the female headers? Pls explain...


3 years ago

last one....people..... learn to read a diagram !!!!

Meet Gera

3 years ago

how it's get power


3 years ago

I have never used Arduino (I really want to though), so these questions may seem a little uneducated, but would this set-up be able to output the data that it would display in a way that could be plugged into a computer for processing/storage? Also, would it be possible to put this in a box with the sensors on the outside, so that it is protected from rain and water, but still can gather information?

3 replies
AXR AMARsolomon97

Reply 3 years ago


try this Arduino clone


Reply 3 years ago

There are several solutions to make the connection to a computer, depending on the case. If it is within USB distance, you could print the data to serial and read it from the Arduino IDE's serial reader. You could also use a wifi shield, or a 433 MHz transmitter and another Arduino with a receiver and a USB connection to your computer to make the link. You could write a sketch in Processing on the computer to use/store the data coming in over the serial connection. Alternatively, if you want this weather station to collect data in a remote area, you could hook up a SD Card shield to the Arduino and have it write the data to the SD card for periodic collection. There are write-ups for each of this situations scattered across the internets. Google onward!


Reply 3 years ago

Not with arduino the pi can do it easily .
if you are wanting to show on a screen only .
About the sensor the bmp is not water proof .
All it needs is a good casing solution .


3 years ago

can i get the circuit diagram

and will it work with arduino uno

1 reply

3 years ago


Arduino clone !


3 years ago

Hi Prajjwal!

Absolutely amaizing. Thanks a lot for sharing.

1. What about bme_280 environment sensor "3 in 1" (almost "all in one")?

2. What about impeller to measure the wind speed? I made one out from 40 mm cooler (former computer video card cooling system). I embedded the look through type IR optical sensor there (< 700 uA of current consumption in pulse counting mode)...

Any questions are welcome!

Thanks again!




3 years ago

Looks like the one I have been looking for. I have built several using different processors, one on an Uno another on an ESP8266. Those only show me temps and humidity. What I want for our motor home, while we travel it would be wonderful to be able to track our weather. I want one that will also tell me the altitude, as this gets very important when traveling in the mountains when night approaches. Temps can vary so greatly, last year we spent the night at a truck stop that was well over 7000 feet, by morning my pipes were frosty, as the temps dropped below 0F. Man were we cold. When we headed down the road we found that had we driven another fifty miles we would have been at a much lower altitude and well above 32F This could be the one, it is my project for tomorrow morning. This time I think I will put it on a micro.


Reply 3 years ago

connection are same and the code is same too


Reply 3 years ago


Is it possible to make this without soldering? I have a arguing undo kit for my kids and was wondering if we could try this without soldering?

Floyd BunsenEmmaM29

Reply 3 years ago

you could theoretically breadboard the whole thing, but it would be a little harder to carry and the pins could come out quite easily. :)


Reply 3 years ago

Yes emma absolutely possible connection same as of nano .if possible i update a video on it .