Continuous monitoring of wireless network of temperature sensors using MATLAB® and XBee®
In this example, MATLAB is used to continuously monitor the temperature throughout an apartment by interacting with a wireless network of temperature sensors built using XBee Series 2 modules. Each XBee edge-node reads analog voltages (that are linearly proportional to the temperature) from multiple temperature sensors. The readings are transmitted back to MATLAB via a coordinator XBee module. This example illustrates how to manipulate, acquire, and analyze data from a network of multiple sensors connected to multiple XBee edge-nodes. Data are acquired over periods ranging from hours to days to help design and build a smart thermostat system.
XBee is a registered trademark of Digi International, http://www.digi.com.
This example requires the XBee class from the MATLAB Central file exchange entry available here:
http://www.mathworks.com/matlabcentral/fileexchange/45550
Cite As
Benjamin Kraus (2026). Continuous monitoring of wireless network of temperature sensors using MATLAB® and XBee® (https://www.mathworks.com/matlabcentral/fileexchange/47757-continuous-monitoring-of-wireless-network-of-temperature-sensors-using-matlab-and-xbee), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Physical Modeling > Simscape Electrical > Electrical Block Libraries > Electromechanical >
- Test and Measurement > WSNs >
Tags
Acknowledgements
Inspired by: Wireless control and monitoring of an LED using XBee
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.8.0.1 | Updated license |
||
| 1.8.0.0 | Added code and example functions for the final MakerZone article. |
||
| 1.7.0.0 | Fixed broken links to the MakerZone articles. |
||
| 1.6.0.0 | Added code and example functions for the third MakerZone article. |
||
| 1.5.0.0 | Added code and example functions for the second MakerZone article. |
||
| 1.2.0.0 | I added "Copyright 2014 The MathWorks, Inc." to the MATLAB file in the submission. I also moved the images so that they would show up properly in the "Example" display on the File Exchange. |
