Hi all. I'm a newbie and really needs some help here.
I'm currently working on a project which is the automated pressure sensor monitoring system.
My current code is only able to record the sensors reading and log it into the SD card.
The problem is I don't know exactly how to read back the last saved file and extract data of the certain cell ranges so that I can print out the final average value (on the LCD display 16X2) from each sensor.
I had tried to modify the provided "Listfiles" examples code, but still could not solve it.
Assuming that you closed the last file before turning the power off on the Arduino, you can read the last file on your PC. And there are NO cell ranges of data written to your SD card, only bytes of data. What do you get on your PC?
For usual you don't have date/time of files on an Arduino.
You could use a timestamp as filename. Then you know out of the filename what is the newest / oldest file.