File Exchange

image thumbnail

Analyzing Weather Data from an Arduino-based weather station

version 1.4.2 (2.25 MB) by MathWorks Internet of Things Team
Analyze data from a weather station connected to ThingSpeak


Updated 02 Oct 2019

View Version History

View License

This example illustrates how to analyze data from a weather station connected to ThingSpeak, an IoT analytics platform. The data is visualized and analyzed in MATLAB. The example shows how to visualize wind speed and direction, calculate and plot dew point, and verify pressure trends. It also demonstrates some techniques to remove outlier data and fill in missing data.
If using MATLAB versions R2014b through R2018b, this example requires the user to first install the MATLAB Support for ThingSpeak which is available here:
If using R2019a or higher, there is no need to download the ThingSpeak support as the needed functions are built-in to MATLAB.
For more information on IoT andThingSpeak, see the following resource pages:

Cite As

MathWorks Internet of Things Team (2021). Analyzing Weather Data from an Arduino-based weather station (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (8)

Muhammad Murtaza

i want to make this project
any video where i can learn it

Sherlock Bugcrowd

Sherlock Bugcrowd

Naïm Samet

Could somebody give me the reference of Arduino card and components please?

Vivek Asati

Andrei Bosco

The example is not up to date with current Thingspeak Support Toolbox. Ex.: function thingSpeakFetch is now called thingSpeakRead, and DateRange argument works differently.



MATLAB Release Compatibility
Created with R2019b
Compatible with R2014b and later releases
Platform Compatibility
Windows macOS Linux
More Files in the  ThingSpeak Community

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!