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:
Benjamin Kraus (2021). 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 CompatibilityWindows macOS Linux
Inspired by: Wireless control and monitoring of an LED using XBee
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!