sensor code updates