change datatypes in sensordata model and add parser for incoming data