update sensors code