base api for sensor/measures