Added code for rerendering sensor