PaulS:
The sketch doesn't even declare TOTAL_PINS, but it runs well, what happen?
Sure it does. It includes Firmata.h which includes Boards.h which defines a number of platform-specific values (based on the board type).
So the Firmata sketch has been designed not only UNO, but also MEGA?
Then no need anymore to modify it if I change my device to MEGA?
So I only need to change the GUI code?
You can download so you might know the GUI appereance.
I also would like to add database that will record all the data for certain period of time.
This is really hard work.
I really hope the designer reply me soon,hmmm...