Collecting sensor data

Even though sending over Hello, world! is already pretty cool, it is not very useful yet. Instead of sending a fixed message, you will want to send some variable data, such as coming from a sensor.

In this section, you will connect a combined temperature and humidity sensor to the sending Arduino and have it send over its readings to the coordinator. The coordinator will then receive these readings and, for now, display them on the Serial console (later, you will see how to put the readings in pretty graphs, too!).

There are a lot of different sensors available that can be used with an Arduino. There is not a single unified way to wire up and talk to all sensors, but Arduino-specific instructions and tutorials can be found ...

Get Building Wireless Sensor Networks Using Arduino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.