added update API endpoint and mock sensor