Movement related to temperature

I strongly recommend OpenLog for logging.

You don't have to to any extra programming at all -- it just records what you send out the serial port, using Serial.print() commands.