maintain elevation function in sensor