Added the option to log more than 2 sensors.

Graphical interface is not changed yet.