Live Seismograph Plot with Grove 3-Axis Accelerometer and Seeed Studio ESP32-C3

I'm working on a hobby project to make a seismometer using a Grove 3-axis accelerometer along with a Seeed Studio ESP32-C3 to record accelerations. I am successfully getting the data to the serial port of my system and have set a delay of 50ms to obtain a 40Hz sample rate.

What is the correct way to record signals before sending it to serial port and are there any optimal way to correctly collect signals from the accelerometer with proper gain and amplification.

Also, I'm using Python to read the data from the serial port and live plot it similar to a seismograph. However, the plot does not look like a real seismograph.

Here are my requirements:

The x-axis should be the UTC timestamp. The y-axis should be the acceleration (Z-axis) value. The plot must show data for the whole day, with each grid representing 30 seconds.

Thanks

Well, just code it that way. 115200 baud is pretty ok, maybe you can use 2MHz.

Thanks for the reply,
Are there any optimal way to correctly collect signals from the accelerometer with proper gain and amplification. Do I need to use Interrupts or delay would work fine ?