change sensor code