What you are building and why it matters

An Arduino weather station is a device you assemble yourself that measures temperature, humidity, air pressure, and sometimes rainfall or wind speed, then displays or records that data. Unlike a commercial weather station you buy finished, you choose which sensors to add, where to place them, and what you do with the readings — send them to your phone, log them to a spreadsheet, trigger other devices when conditions change, or straightforward watch them on a small screen.

The appeal is control and learning. A finished weather station costs $100 to $500 and does what the manufacturer decided. An Arduino station costs $40 to $150 in parts, teaches you how sensors actually work, and lets you add features later — a rain gauge, a wind vane, alerts when frost is coming, or integration with your garden watering system. You own the data and the device.

This is a beginner electronics project. You do not need to write complex code or understand circuit design deeply. You buy a kit or parts list, follow wiring diagrams, load pre-written code onto the Arduino board, and the station works. The hardest part is usually mounting it outside and keeping it weatherproof.

Key Takeaways

  • An Arduino weather station measures temperature, humidity, and pressure using sensors you wire to an Arduino microcontroller board, which costs $25 to $40 alone.
  • A basic station needs an Arduino board, a DHT22 or BME280 sensor, a display screen, and a power source — total parts cost is typically $60 to $100.
  • You read free code from Arduino community sites, load it onto the board using a USB cable and free software, and the station begins reading data when ready.
  • The biggest practical challenge is weatherproofing and placement — sensors need to be outside but protected from rain, and direct sun skews temperature readings.
  • Once running, you can log data to a computer, send readings to your phone, or use conditions to trigger other smart home devices.

The parts you need and what each one does

Start with an Arduino microcontroller board — usually an Arduino Uno or Arduino Nano. This is the brain. It reads data from sensors and tells the display what to show. An Uno costs $20 to $30 new; a Nano costs $10 to $15 and is smaller. Both work equally well for weather sensing.

Next is a sensor that measures temperature and humidity. The DHT22 is the most common choice for beginners — it costs $5 to $10, wires easily, and the code is well-documented. The BME280 is more accurate and also measures air pressure, which lets you predict weather changes; it costs $8 to $15. Either one will work. You only need one sensor unless you want to measure conditions in different locations.

You need a display to see the readings. A 16x2 LCD screen (16 characters wide, 2 rows tall) costs $5 to $8 and shows temperature and humidity clearly. A small OLED screen costs $8 to $12, is brighter and easier to read in sunlight, but uses slightly more power. Both connect with just four wires.

Add a power source. A USB power adapter and a USB cable that fits your Arduino board is simplest — you plug it into an outlet near a window or run it outside with a weatherproof extension cord. A battery pack (four AA batteries in a holder) costs $3 to $5 and works if you do not have outdoor power, but batteries drain in weeks and you will need to replace them often.

Finally, buy jumper wires (the thin colored wires that connect parts) and a breadboard (a plastic board with holes where wires and parts snap in without soldering). A bundle of both costs $5 to $10. You do not need a soldering iron for a basic station.

Wiring the sensor and display to the Arduino

The wiring is the part that looks intimidating but is actually straightforward. Each sensor and display has pins labeled on its datasheet — a document you find free online. Each pin connects to a specific pin on the Arduino using a jumper wire.

For a DHT22 sensor, you connect three wires: power (to the Arduino's 5V pin), ground (to a GND pin), and data (to a digital pin like pin 2). The breadboard holds the wires in place so nothing falls loose. For an LCD display, you connect power, ground, and four data wires. The exact pins do not matter much — you tell the code which pins you used, and it works.

The Arduino community site Arduino.cc has wiring diagrams for nearly every sensor and display combination. Search "Arduino DHT22 wiring" or "Arduino BME280 wiring" and you will find photos showing exactly where each wire goes. Follow the diagram, double-check that power and ground are correct, and you are done wiring.

If something does not work after wiring, the problem is almost always a loose wire or a wire in the wrong hole. Reseat every connection — pull the wire out and push it back in firmly. That fixes 90 percent of wiring problems.

Loading code onto the Arduino and starting the station

Code is the set of instructions that tells the Arduino to read the sensor and update the display. You do not write it from scratch. Instead, you read existing code from Arduino community libraries, paste it into the Arduino IDE (a free program you read from Arduino.cc), and click Upload.

The Arduino IDE is free software that runs on Windows, Mac, or Linux. You read it, install it, and plug your Arduino into your computer with a USB cable. The IDE recognizes the board automatically. You then open a sketch — that is what Arduino calls a program — that someone else has written for your sensor and display combination.

The Arduino Project Hub (create.arduino.cc/projecthub) has complete sketches for weather stations. Search "Arduino weather station DHT22" and you will find code you can copy and paste. Before uploading, you may need to change one or two lines to match your setup — for example, which pin your sensor is connected to. The code comments (lines starting with //) explain what each section does.

Click Upload, wait 10 seconds, and the code loads onto the Arduino. The display should light up and show readings. If it does not, check that the USB cable is plugged in, that you selected the correct board type in the IDE (Tools menu), and that the sensor is wired correctly.

Placing and weatherproofing your station

Location matters more than most people expect. Temperature sensors read wrong if they are in direct sun, in shade from a building, or near a heat source like an air conditioner vent. The best location is in open air, shaded from direct sun, at least 4 feet away from walls and buildings. A north-facing eave or a post in the middle of a yard works well.

Weatherproofing means protecting the electronics from rain while letting air reach the sensor. A straightforward approach is a plastic project box (available at hardware stores for $5 to $10) with holes drilled for the sensor and display. Mount the box on a pole or bracket, angle it slightly so rain runs off, and seal the holes with silicone caulk. The sensor itself (DHT22 or BME280) is not waterproof, so it needs its own small shield — a piece of PVC pipe or a 3D-printed cover that lets air in but blocks rain.

If you are using a USB power adapter, run the cable through a conduit or PVC pipe to protect it from weather, and use a weatherproof outlet cover at the wall. If you are using batteries, put them in a waterproof container inside the project box.

Test the setup for a week before finalizing it. Check that readings make sense — temperature should match a thermometer you trust, humidity should be higher on damp days — and that nothing has gotten wet. Adjust placement or weatherproofing if needed.

What to do with the data once you have it

The simplest use is watching the display. You glance at it and know the current temperature and humidity. That is useful on its own.

To record data over time, you can add an SD card module (a small device that stores data on a memory card) for $5 to $8. The Arduino writes readings to the card every minute or every hour. Later, you plug the card into a computer and open the data in a spreadsheet to see trends — how temperature changed over a week, when humidity peaked, whether frost occurred on certain nights.

To send readings to your phone, you can add a WiFi module like the ESP8266 (which costs $5 to $8 and can actually replace the Arduino entirely for this project). The module connects to your home WiFi and sends data to a free service like Blynk or Adafruit IO. You then see readings on your phone from anywhere, and you can set up alerts — for example, a notification when temperature drops below freezing.

To trigger other devices, you can use the Arduino to control a relay (an electronic switch) that turns on a fan when humidity gets too high, or starts a watering system when soil moisture drops. This is where a weather station becomes part of a larger smart home system.

Common problems and how to fix them

The display shows nothing. Check that power is connected (look for a small LED light on the Arduino board). If the board has power but the display is dark, the display may be connected to the wrong pins. Recheck the wiring diagram and move wires if needed. If the display lights up but shows garbage characters, the code may be using the wrong display type — edit the sketch to match your screen (LCD or OLED).

The sensor reads the same value forever, or reads wildly different values. A stuck reading usually means the sensor is not wired correctly or the code is looking at the wrong pin. Recheck the wiring and the pin number in the code. Wild swings usually mean the sensor is too close to a heat source or direct sun, or the power supply is unstable. Move the sensor and check that the USB cable is plugged firmly into both the Arduino and the power adapter.

The Arduino stops responding after a few hours. This often happens when the power supply is weak or the USB cable is loose. Use a power adapter rated for at least 1 amp, and check the cable connection. If you are using batteries, they may be draining faster than expected — switch to USB power or use fresh batteries.

Frequently Asked Questions

Do I need to know how to code to build this?

No. You read code that someone else wrote, paste it into the Arduino IDE, and upload it. You may need to change one or two lines to match your sensor and pins, but the code comments explain what each part does. The Arduino community has sketches for nearly every beginner project, so you rarely write code from scratch.

Can I use a Raspberry Pi instead of an Arduino?

Yes, but Arduino is simpler for this project. A Raspberry Pi is a full computer and costs more ($35 to $75). An Arduino is a microcontroller and costs less ($20 to $40). For a weather station, Arduino is easier to set up and uses less power. A Raspberry Pi is better if you want to run multiple projects or a web server at the same time.

How long do the readings take to show up on my phone?

If you add WiFi, readings update every 10 to 60 seconds depending on how you program it. The Arduino reads the sensor, sends the data to your WiFi module, which uploads it to a cloud service, which updates your phone app. The whole process takes a few seconds. Without WiFi, you can only see readings on the display itself.

What if I want to measure rainfall or wind speed too?

You add a rain gauge sensor (a tipping bucket that counts drops, costs $15 to $30) and a wind speed sensor (an anemometer, costs $20 to $40). Both connect to the Arduino the same way as the temperature sensor — power, ground, and a data wire. You read code that reads both, and the display shows all measurements. Start with temperature and humidity, then add these later if you want more detail.

Will my station work if I live somewhere very cold or very hot?

Most sensors work from about -40°F to 125°F, so they handle most climates. In extreme cold, batteries drain faster and USB cables can become brittle. In extreme heat, the electronics can overheat if they are in direct sun. Weatherproofing and shade are even more important in extreme climates. Check your sensor's datasheet for its exact temperature range before buying.