added update sensor funtions