use hashes instead of key value for saving sensor-data

For each sensor-value we need at least the value and the time when
this value was taken by the sensor. So we can identify old values.
There might be more parameters for other sensors later, so hashes
are the better type for storing this.

Therefore some refactoring was done