By Tom Igoe

Here's a link to a simple program to graph the output of a sensor over time. It's not really a data logger, it's more of a data grapher. Many of the examples on this site are based on this code.