added toHash/toJSON to server/service/sensor