update_sensors
refactor