Use a hash of hashes instead of an array of single hashes of hashes

This modifies the sensor structure to make more sense.