update the arduino code to store the timestamp