Vernier Software and Technology
Vernier Software & Technology
Arduino and Vernier Sensors

Graphing Sensor Data

In the previous section, we described how to display data on the Serial Monitor. The same sketch can be used to graph data on the Serial Plotter. The Serial Plotter is a Tool that comes pre-installed with the Arduino IDE. When the Serial Plotter is open, print commands will plot sensor data on the vertical Y axis. The scale automatically adjusts to fit your data. Note you cannot have the Serial Monitor and the Serial Plotter open at the same time.

The sample sketch, VernierLibTutorialAnalogGraph, will take sensor readings every half second and graph them to the Serial Plotter. Notice the optional command


Adding this line will cause the graph to fill in with solid color. Eliminating this line will produce a simple line graph.

Graph fill options



Vernier Engineering Contest

Vernier recognizes instructors for creative uses of Vernier sensors to introduce engineering concepts and/or practices. Vernier Engineering Award »

Go to top