What you'll build and what it measures
An Arduino weather station collects real-time temperature, humidity, air pressure, and rainfall data from your own location. Unlike a commercial weather station, you assemble it yourself from individual sensors, which costs between $50 and $150 depending on which measurements you want to track. The Arduino board acts as the brain — it reads the sensor data, stores it, and can send it to your phone or a website.
Most home Arduino weather stations use a DHT22 sensor for temperature and humidity, a BMP280 for air pressure, and a rain gauge with a tipping bucket mechanism. You wire these to an Arduino Uno or Arduino MKR WiFi 1010, write code to read the sensors, and display the results on an LCD screen or send them to the cloud. The whole project takes a weekend if you have soldering experience, or a few evenings if you're learning as you go.
Key Takeaways
- An Arduino weather station needs a microcontroller board (Arduino Uno or MKR WiFi 1010), temperature and humidity sensor (DHT22), air pressure sensor (BMP280), and a rain gauge with tipping bucket.
- You connect sensors to the Arduino using jumper wires and solder connections, then write code in the Arduino IDE to read and display the data.
- A basic station without internet costs $50–$100; adding WiFi to send data to the cloud adds $20–$40 and requires a WiFi-capable board.
- The Arduino IDE is free software where you write and upload the code that tells your station what to measure and how often.
Choosing your Arduino board and sensors
Start by deciding whether you want your station to connect to the internet. If you only need to read the data from a screen attached to the Arduino, use an Arduino Uno ($25–$30). If you want to send data to a website or check readings from your phone, use an Arduino MKR WiFi 1010 ($35–$40) instead. The MKR is smaller and has built-in WiFi; the Uno requires a separate WiFi shield, which adds cost and complexity.
For sensors, buy a DHT22 temperature and humidity sensor ($5–$8), a BMP280 air pressure sensor ($8–$12), and a rain gauge kit with a tipping bucket ($15–$25). These three sensors cover the basics. You'll also need jumper wires ($3–$5), a breadboard ($3–$5), and an LCD display if you want to see readings without opening the Arduino IDE ($10–$15). All of these are available from electronics suppliers like Adafruit, SparkFun, or Amazon.
Wiring the sensors to your Arduino
Each sensor connects to the Arduino using jumper wires. The DHT22 has four pins: power (5V), ground, data, and a no-connect pin. Plug the power pin into the Arduino's 5V output, the ground pin into GND, and the data pin into a digital input like pin 2. The BMP280 uses I2C communication, which means it connects to the Arduino's SDA and SCL pins (on an Uno, these are A4 and A5). The rain gauge connects to a digital input pin and triggers a pulse each time the bucket tips.
If you're new to soldering, use a breadboard instead of soldering directly. Plug the Arduino into the breadboard, then use jumper wires to connect each sensor. This lets you rearrange things if something doesn't work. Once everything is connected and tested, you can solder the permanent connections. Take a photo of your breadboard layout before you start soldering — you'll need it to remember which wire goes where.
Writing and uploading the code
Download the free Arduino IDE from arduino.cc. This is the software where you write the code that tells your Arduino what to do. You don't need to be a programmer — most weather station code is available as examples or libraries that you can copy and modify. Install the DHT library and the Adafruit BMP280 library through the IDE's Library Manager (Sketch > Include Library > Manage Libraries). Search for each sensor name and click Install on the official version.
Write a sketch (Arduino's name for a program) that reads each sensor in a loop, prints the values to the serial monitor, and updates the LCD display if you have one. Start simple: read the temperature and humidity, display them, wait 10 seconds, and repeat. Once that works, add the pressure sensor and rain counter. Test each piece separately before combining them. Upload the code to your Arduino using a USB cable, and watch the serial monitor to see if the readings make sense.
Sending data to the cloud (optional)
If you're using an Arduino MKR WiFi 1010, you can send your weather data to a free service like ThingSpeak or Blynk. These platforms store your data and let you view it from anywhere. Sign up for a free account, get an API key, and add WiFi connection code to your sketch. The Arduino connects to your home WiFi network, reads the sensors, and sends the data every few minutes. You can then create a dashboard that shows your temperature, humidity, and rainfall over time.
Sending data to the cloud uses more power than a local-only station, so if you're running on batteries, stick with a wired power supply or a large solar panel. The Arduino MKR boards are more power-efficient than the Uno, so they're the better choice if you want WiFi. Test your WiFi connection indoors first — if the signal is weak, you may need to move the Arduino closer to your router or add an external antenna.
Mounting and weatherproofing your station
Mount the temperature and humidity sensor in a radiation shield — a white plastic box with vents that keeps direct sunlight off the sensor while letting air flow through. This prevents the sensor from reading artificially high temperatures. Mount the shield on a pole or post at least 4 feet above the ground and away from buildings, trees, and pavement. The rain gauge should be in an open area with nothing blocking the sky above it.
Put the Arduino and any batteries in a weatherproof enclosure like a plastic project box. Drill holes for the sensor wires and the power cable, and seal the holes with silicone caulk. If you're using an LCD display, mount it on the outside of the box or bring the wires inside and mount the display separately. Test everything before you seal it up — once the box is closed, it's harder to troubleshoot. Leave the USB port accessible if you want to reprogram the Arduino later.
Troubleshooting common problems
If the Arduino doesn't recognize a sensor, check that the wires are plugged into the correct pins and that the sensor is getting power. Use a multimeter to measure voltage at the sensor's power pin — it should read 5V. If it reads 0V, the power wire isn't connected properly. Open the serial monitor in the Arduino IDE and look for error messages. Most sensor libraries print helpful text if something is wrong.
If the temperature or humidity readings are wildly off, the sensor may be in direct sunlight or too close to a heat source. Move it to a shaded, well-ventilated location. If the rain gauge never triggers, make sure the tipping bucket mechanism moves freely and that the sensor wire is plugged into a digital input pin, not an analog one. Test the rain gauge by tilting it by hand — you should see a pulse in the serial monitor each time the bucket tips.
Frequently Asked Questions
Do I need soldering experience to build this?
No. You can use a breadboard and jumper wires to connect everything without soldering. Once you've tested that everything works, you can solder the connections to make them permanent. If you've never soldered before, practice on scrap wire first or watch a tutorial video.
Can I use a Raspberry Pi instead of an Arduino?
Yes, a Raspberry Pi can run a weather station and is more powerful, but it uses more electricity and is harder to program if you're new to coding. An Arduino is simpler and cheaper for this project. If you want to run other smart home tasks at the same time, a Raspberry Pi might be worth the extra complexity.
How often should I take readings?
Every 10 to 30 seconds is typical for a local display. If you're sending data to the cloud, every 5 to 15 minutes is common to save bandwidth and battery power. You can change this in your code by adjusting the delay between readings.
What if I want to measure wind speed or direction?
Add an anemometer (wind speed sensor) and a wind vane (direction sensor). Both connect to digital input pins like the rain gauge. You'll need to install their libraries and add code to read them, but the process is the same as adding any other sensor.
Can I run this on batteries?
Yes, but battery life depends on how often you take readings and whether you're sending data to the cloud. A local-only Arduino Uno with a DHT22 can run for weeks on four AA batteries. WiFi drains batteries much faster — expect a few days to a week on batteries with the MKR WiFi 1010.