implements sensor data API in json+hal